Skip to content

Commit

Permalink
Remove the nonce check in handleRedirectCallback (#678)
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Hobbs authored Dec 17, 2020
1 parent f7bab4c commit ae9c4ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Auth0Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -497,8 +497,8 @@ export default class Auth0Client {

const transaction = this.transactionManager.get();

// Transaction should have a `code_verifier` to do PKCE and a `nonce` for CSRF protection
if (!transaction || !transaction.code_verifier || !transaction.nonce) {
// Transaction should have a `code_verifier` to do PKCE for CSRF protection
if (!transaction || !transaction.code_verifier) {
throw new Error('Invalid state');
}

Expand Down

0 comments on commit ae9c4ad

Please sign in to comment.