-
Notifications
You must be signed in to change notification settings - Fork 212
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
Update README #637
Comments
Thanks @Webbeh 👋 An oversight on my part in porting the documentation. I've updated the README to reflect expected usage now. |
Anytime. |
What's the cleanest way to handle that exception? I have customers who bookmarked the URL of the WebApp with the state and code URL parameter. If they end their session and they call that URL, the StateException is thrown every time. Should I just replace the error message with a call to |
Hey @Webbeh 👋 That would work, just keep in mind that if you catch and redirect to login within your callback route, you could potentially create an infinite redirect loop if there are some weird circumstances, like the end user blocking cookies. Showing an interstitial page with an error message and offering to redirect the user back to your login route to try again would introduce an extra step, but might be a safer route. |
Maybe I should redirect them to the That error would appear way too often - everyone who bookmarked a page including the Getting rid of those parameters when bookmarking would probably be a better solution... |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
SDK Version
8.2
PHP Version
Other (specify in 'additional context')
What happened?
The
$auth0->exchange()
method was updated in v8 to not returnfalse
anymore, but throw Exceptions.It would be good to update the Requesting Tokens part of the README to be in accordance with those changes.
An example of those changes can be found in #524 (comment)
If we use the README's example, the only thing we get is an uncaught StateException.
How can we reproduce this issue?
Follow the readme as it is right now and try to use a previously logged in session.
Additional context
No response
The text was updated successfully, but these errors were encountered: