Skip to content

Commit

Permalink
fix jwt verify check
Browse files Browse the repository at this point in the history
  • Loading branch information
jcmelati committed Nov 14, 2024
1 parent 1497ccd commit 2343bfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/oidf-client/src/agent/OIDFClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class OIDFClient implements IAgentPlugin {
return {
verify: async (jwt: string, key: JWK): Promise<boolean> => {
const verification = await context.agent.jwtVerifyJwsSignature({jws: jwt, jwk: key})
return verification.error === undefined
return !verification.error
}
}
}
Expand Down

0 comments on commit 2343bfa

Please sign in to comment.