Skip to content

Commit

Permalink
auth0 decoder handles undefined public key (#5701)
Browse files Browse the repository at this point in the history
Co-authored-by: Dominic Saadi <dominiceliassaadi@gmail.com>
  • Loading branch information
dthyresson and jtoar committed Jun 10, 2022
1 parent fa8fba9 commit 07b00d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/api/src/auth/decoders/auth0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const verifyAuth0Token = (
bearerToken,
(header, callback) => {
client.getSigningKey(header.kid as string, (error, key) => {
callback(error, key.getPublicKey())
callback(error, key?.getPublicKey())
})
},
{
Expand Down

0 comments on commit 07b00d2

Please sign in to comment.