We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In the same way that dynamic post login urls are allowed, it would be useful to allow the same for logout.
For example to allow both:
api/auth/logout?post_logout_redirect_uri=product1/login api/auth/logout?post_logout_redirect_uri=product2/login
a post_logout_redirect_uri parameter that can be passed to the logout url something like
post_logout_redirect_uri
<Link href={{ pathname: "/api/auth/logout", query: { post_logout_redirect_url: "/product2/login" } }} > Log out </Link>
No response
The text was updated successfully, but these errors were encountered:
export const logout = async (routerClient) => { const authUrl = await routerClient.kindeClient.logout( routerClient.sessionManager, { authUrlParams: Object.fromEntries(routerClient.searchParams) } );
const postLogoutRedirectURL = routerClient.getSearchParam( 'post_logout_redirect_url' );
if (postLogoutRedirectURL) { await routerClient.sessionManager.setSessionItem( 'post_logout_redirect_url', postLogoutRedirectURL ); }
routerClient.redirect(authUrl); };
Think this should do it for pages router, just need to add LogoutLink for app router
Sorry, something went wrong.
No branches or pull requests
Prerequisites
What is the problem you’re trying to solve?
In the same way that dynamic post login urls are allowed, it would be useful to allow the same for logout.
For example to allow both:
What solution would you like to see?
a
post_logout_redirect_uri
parameter that can be passed to the logout url something likeAdditional information
No response
The text was updated successfully, but these errors were encountered: