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

Ability to customize state param (for redirecting a user to the original URL after login) #1

Closed
aaronshaf opened this issue Dec 26, 2021 · 1 comment

Comments

@aaronshaf
Copy link

aaronshaf commented Dec 26, 2021

At let state = this.generateState(); one could store some custom state or the current pathname.

@shamsup
Copy link

shamsup commented Dec 28, 2021

According to Google and auth0, the best practice for the state param in OAuth2 is using a CSRF token instead of guessable parameters. You can store any other custom information in the session itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants