Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SDK-2522] Check for state along with error param #231

Merged
merged 1 commit into from
Apr 16, 2021
Merged

Conversation

adamjmcgrath
Copy link
Contributor

PKCE will always provide a state when it provides an error param in the callback, so we can check for that to prevent the error param clashing with other uses of the error param.

This matches auth0-angular https://github.com/auth0/auth0-angular/blob/master/projects/auth0-angular/src/lib/auth.service.ts#L317-L318

fixes: #225

@adamjmcgrath adamjmcgrath added the review:small Small review label Apr 16, 2021
@adamjmcgrath adamjmcgrath requested a review from a team as a code owner April 16, 2021 10:20
@@ -37,7 +37,7 @@ export function Nav() {

{isAuthenticated ? (
<div>
<span id="hello">Hello, {user.name}!</span>{' '}
<span id="hello">Hello, {user?.name}!</span>{' '}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixing an E2E test

@adamjmcgrath adamjmcgrath merged commit 05866c0 into master Apr 16, 2021
@adamjmcgrath adamjmcgrath deleted the error-state branch April 16, 2021 11:08
@adamjmcgrath adamjmcgrath mentioned this pull request May 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
review:small Small review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

error query string param is breaking auth0
2 participants