We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2eea009 + 399bb91 commit e96f2faCopy full SHA for e96f2fa
projects/lib/src/oauth-service.ts
@@ -1734,14 +1734,15 @@ export class OAuthService extends AuthConfig implements OnDestroy {
1734
return Promise.resolve();
1735
}
1736
1737
+ if(!options.disableOAuth2StateCheck) {
1738
const success = this.validateNonce(nonceInState);
1739
if (!success) {
1740
const event = new OAuthErrorEvent('invalid_nonce_in_state', null);
1741
this.eventsSubject.next(event);
1742
return Promise.reject(event);
1743
1744
-
1745
+
1746
this.storeSessionState(sessionState);
1747
1748
if (code) {
0 commit comments