For logout scenario
Clearing a session with logout
This route handles signing a user out from your application. It will clear the user's session in your app, and briefly redirect to Auth0's logout endpoint to ensure their session is completely clear, before they are returned to your home route
As an example
Include the client_id parameter in the string, as shown here:
https://YOUR_DOMAIN/v2/logout?returnTo=http%3A%2F%2Flocalhost%3A85&client_id=YOUR_CLIENT_ID
This would ensure the logouts happen seamlessly. If it is not provided, it results in inconsistent behavior.
Last updated