From e68f43d4da00c6117ec4c1395f78a5765d1c7383 Mon Sep 17 00:00:00 2001 From: Adrian Farmadin Date: Sat, 3 Dec 2022 20:38:28 +0100 Subject: [PATCH] Undefined nonces should be equal in IdToken processing --- projects/lib/src/oauth-service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/lib/src/oauth-service.ts b/projects/lib/src/oauth-service.ts index b241adc5..bec36234 100644 --- a/projects/lib/src/oauth-service.ts +++ b/projects/lib/src/oauth-service.ts @@ -2176,7 +2176,7 @@ export class OAuthService extends AuthConfig implements OnDestroy { const claimsJson = b64DecodeUnicode(claimsBase64); const claims = JSON.parse(claimsJson); - let savedNonce; + let savedNonce = undefined; if ( this.saveNoncesInLocalStorage && typeof window['localStorage'] !== 'undefined'