Skip to content

Commit

Permalink
[jwt] fix unauthorized being thrown in onRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
EmrysMyrddin committed Dec 22, 2023
1 parent ab81a2e commit a989035
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/plugins/jwt/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export function useJWT(options: JwtPluginOptions): Plugin {
}

return {
async onRequest({ request, serverContext, url }) {
async onRequestParse({ request, serverContext, url }) {
const token = await getToken({ request, serverContext, url });
if (token != null) {
const signingKey = options.signingKey ?? (await fetchKey(jwksClient, token));
Expand Down

0 comments on commit a989035

Please sign in to comment.