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 })