fix: use public key, not private
This commit is contained in:
parent
224d7a636d
commit
e9aa676d94
|
@ -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
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue