diff --git a/lib/src/core/authentication-core.ts b/lib/src/core/authentication-core.ts index 69712e12..3b14e712 100644 --- a/lib/src/core/authentication-core.ts +++ b/lib/src/core/authentication-core.ts @@ -552,7 +552,7 @@ export class AuthenticationCore { "AUTH_CORE-GSOU-NF02", "authentication-core", "getSignOutURL", - "ID token n0t found.", + "ID token not found.", "No ID token could be found. Either the session information is lost or you have not signed in." ); } diff --git a/lib/src/helpers/authentication-helper.ts b/lib/src/helpers/authentication-helper.ts index 11b88bc1..489ea951 100644 --- a/lib/src/helpers/authentication-helper.ts +++ b/lib/src/helpers/authentication-helper.ts @@ -149,7 +149,7 @@ export class AuthenticationHelper { jwk, (await this._config()).clientID, issuer, - AuthenticationUtils.getAuthenticatedUserInfo(idToken).username, + CryptoUtils.decodeIDToken(idToken).sub, (await this._config()).clockTolerance ) .then((response) => response)