We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 12a2736 + b6fb50c commit 93c907bCopy full SHA for 93c907b
lib/src/helpers/authentication-helper.ts
@@ -291,7 +291,9 @@ export class AuthenticationHelper<T> {
291
292
parsedResponse.created_at = new Date().getTime();
293
294
- if ((await this._config()).validateIDToken) {
+ const shouldValidateIdToken: boolean | undefined = (await this._config()).validateIDToken;
295
+
296
+ if (shouldValidateIdToken) {
297
return this.validateIdToken(parsedResponse.id_token).then(async () => {
298
await this._dataLayer.setSessionData(parsedResponse, userID);
299
0 commit comments