Skip to content

Commit 93c907b

Browse files
Merge pull request #258 from DonOmalVindula/fix/refactor-validate-method
2 parents 12a2736 + b6fb50c commit 93c907b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/src/helpers/authentication-helper.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,9 @@ export class AuthenticationHelper<T> {
291291

292292
parsedResponse.created_at = new Date().getTime();
293293

294-
if ((await this._config()).validateIDToken) {
294+
const shouldValidateIdToken: boolean | undefined = (await this._config()).validateIDToken;
295+
296+
if (shouldValidateIdToken) {
295297
return this.validateIdToken(parsedResponse.id_token).then(async () => {
296298
await this._dataLayer.setSessionData(parsedResponse, userID);
297299

0 commit comments

Comments
 (0)