-
Notifications
You must be signed in to change notification settings - Fork 270
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
error
query string param is breaking auth0
#225
Comments
Hi @igorbarbashin , This can be solved by using the This ensures the Auth0 SDK only handles Some additional information here, we are using Let me know if that doesn't help you. |
I think the actual logic is wrong here though. We should be using |
I think that is a fair point yes. Fixing that would resolve the fact that we do not read every |
Thanks for raising this @igorbarbashin - I'll go ahead an implement @stevehobbsdev's suggestion in #225 (comment) |
By submitting an Issue to this repository, you agree to the terms within the Auth0 Code of Conduct.
We just spent 3 days trying to debug the problem when the app enters an infinite loop of getting logged out/logging back in for no apparent reason.
Turns out that the auth0-react package doesn't like when
?error=something
query string appears in our app.We've added a workaround of avoiding
error
name in the query strings. Had to add an extra redirect that renameserror
to something more descriptive likeloginWithAmazonError
. But still, it seems that it would be better if our query string params didn't conflict.What was the expected behavior?
Auth0 could ignore arbitrary
?error
query strings values.Or use a more namespaced version of the variable name (e.g.
auth0error
)Relevant line:
https://github.com/auth0/auth0-react/blob/master/src/utils.tsx#L5
Reproduction
?error=123
to the url and hit enterCan the behavior be reproduced using the React SDK Playground?
Haven't tried. A bit limited in resources to try
The text was updated successfully, but these errors were encountered: