-
Notifications
You must be signed in to change notification settings - Fork 396
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
V4 set returnTo
or post_logout_redirect_uri
during logout
#1797
Comments
cc @guabu |
Hi @brandicph 👋 We can definitely allow for different logout URLs to be specified via the |
@guabu that is perfect 👌 np. we are used to the process of registering each URL in the client's |
Sounds good, I'll get that added in the next release this week. I'll keep you posted once it's been added! |
Amazing @guabu 🙏 thx |
Hey @brandicph 👋 We've just cut a new release which should now allow you to pass the logout URL in the Please feel free to upgrade to the latest and give it a shot: |
Amazing @guabu - already installed 😎 Thanks for the fast response! |
Checklist
Describe the problem you'd like to have solved
In V4, it is not possible to redirect users to a specific destination when we log users out.
Describe the ideal solution
Allow users to provide a
returnTo
orpost_logout_redirect_uri
as part of thehandleLogout
process.nextjs-auth0/src/server/auth-client.ts
Line 301 in f8dd690
An idea is to add a
returnTo
to thepost_logout_redirect_uri
with a fallback to theappBaseUrl
.This should ultimately allow users to do something like this
Alternatives and current workarounds
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: