fix: use public key, not private

This commit is contained in:
Derrick Hammer 2024-01-17 08:53:10 -05:00
parent 224d7a636d
commit e9aa676d94
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -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"]) return nil, fmt.Errorf("unexpected signing method: %v", token.Header["alg"])
} }
publicKey := portal.Identity() publicKey := portal.Identity().Public()
return publicKey, nil return publicKey, nil
}) })