Skip to content

Commit

Permalink
Merge pull request #258 from DonOmalVindula/fix/refactor-validate-method
Browse files Browse the repository at this point in the history
  • Loading branch information
pavinduLakshan authored Oct 25, 2024
2 parents 12a2736 + b6fb50c commit 93c907b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/src/helpers/authentication-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,9 @@ export class AuthenticationHelper<T> {

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

if ((await this._config()).validateIDToken) {
const shouldValidateIdToken: boolean | undefined = (await this._config()).validateIDToken;

if (shouldValidateIdToken) {
return this.validateIdToken(parsedResponse.id_token).then(async () => {
await this._dataLayer.setSessionData(parsedResponse, userID);

Expand Down

0 comments on commit 93c907b

Please sign in to comment.