Currently, the authenticator.logout method is not logging the user out in auth0.
See this issue for further details:
sergiodxa/remix-auth-oauth2#15
Right now I have to manually do the auth0 logout by doing a double redirect in my logout function:
export const loader: LoaderFunction = async ({ request }) => {
return authenticator.logout(request, {
redirectTo: `https://${appConfig.auth0.issuerBaseUrl}/v2/logout?client_id=${appConfig.auth0.clientId}&returnTo=${appConfig.auth0.baseUrl}/auth/login`,
});
};
export const loader: LoaderFunction = async ({ request }) => {
return authenticator.logout(request, {
redirectTo: `/auth/login`,
});
};
authenticator.logout
Ths user should be logged out of auth0 when using authenticator.logout
No response
No response
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too