From 3dd448278cf8aab40cdd70dc97797b3b1a37848d Mon Sep 17 00:00:00 2001 From: Mritunjay Kumar Date: Tue, 29 Aug 2023 12:56:42 +0530 Subject: [PATCH] fix: test case --- .../did-auth-lib/src/DidAuthService/DidAuthClientService.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common-libs/did-auth-lib/src/DidAuthService/DidAuthClientService.ts b/common-libs/did-auth-lib/src/DidAuthService/DidAuthClientService.ts index f1be00be..20008404 100644 --- a/common-libs/did-auth-lib/src/DidAuthService/DidAuthClientService.ts +++ b/common-libs/did-auth-lib/src/DidAuthService/DidAuthClientService.ts @@ -25,7 +25,9 @@ export default class DidAuthClientService { ) } - const jwtObject = await buildResponseJwtObject(didAuthRequestTokenStr, options.exp) + const exp = options ? options.exp : undefined + + const jwtObject = await buildResponseJwtObject(didAuthRequestTokenStr, exp) await this._signer.fillSignature(jwtObject)