From e9aa676d9405b453f204797402410df94d22a356 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Wed, 17 Jan 2024 08:53:10 -0500 Subject: [PATCH] fix: use public key, not private --- api/s5/middleware.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/s5/middleware.go b/api/s5/middleware.go index 4385756..50e60ae 100644 --- a/api/s5/middleware.go +++ b/api/s5/middleware.go @@ -31,7 +31,7 @@ func AuthMiddleware(handler jape.Handler, portal interfaces.Portal) jape.Handler return nil, fmt.Errorf("unexpected signing method: %v", token.Header["alg"]) } - publicKey := portal.Identity() + publicKey := portal.Identity().Public() return publicKey, nil })