From 76cb93021dd62c241c87656975f74dd44b3766cf Mon Sep 17 00:00:00 2001 From: "Lukas.J.Han" Date: Mon, 4 Mar 2024 16:19:16 +0900 Subject: [PATCH] feat: fix async handling in jwt verify (#131) Signed-off-by: Lukas Signed-off-by: Mirko Mollik --- packages/core/src/jwt.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/jwt.ts b/packages/core/src/jwt.ts index 8cf5e497..5f2efd9e 100644 --- a/packages/core/src/jwt.ts +++ b/packages/core/src/jwt.ts @@ -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'); }