-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
feat: Add successRedirectUrl
to auth options
#6792
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
3 Ignored Deployments
|
successRedirectUrl
to auth flowsuccessRedirectUrl
to auth options
…a into fix/success-redirect-auth
What
Add
successRedirectUrl
to provider options. The option can be used to configure a URL for the callback to redirect to.For example, you could have the following flow:
POST /auth/admin/google
POST /auth/admin/google/callback
http://localhost:5173/login?access_token=...
POST /admin/users
with auth user from tokenIf no
successRedirectUrl
is configured, we respond with the token from the callback.