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)