Skip to content

Commit

Permalink
feat: fix async handling in jwt verify (#131)
Browse files Browse the repository at this point in the history
Signed-off-by: Lukas <Lukas@hopae.io>
Signed-off-by: Mirko Mollik <mirko.mollik@fit.fraunhofer.de>
  • Loading branch information
lukasjhan authored and cre8 committed Mar 8, 2024
1 parent 72ed1ad commit 76cb930
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/jwt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export class Jwt<
const payload = Base64urlEncode(JSON.stringify(this.payload));
const data = `${header}.${payload}`;

const verified = verifier(data, this.signature);
const verified = await verifier(data, this.signature);
if (!verified) {
throw new SDJWTException('Verify Error: Invalid JWT Signature');
}
Expand Down

0 comments on commit 76cb930

Please sign in to comment.