From b513e15c8f73fd585937d20a18e034ca738f0fad Mon Sep 17 00:00:00 2001 From: Lukas Date: Mon, 4 Mar 2024 11:08:06 +0900 Subject: [PATCH] feat: fix async handling in jwt verify Signed-off-by: Lukas --- 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'); }