Clear auth0 session when error occur on the callback action method

Hi, if there is an error that occurred in the callback action method after the user enters credentials and hits the login button, we are throwing the user to an error page. However, when the user again select the login URL in the same browser, they don’t redirect to login page, instead, it goes in the callback method again and throws the same error. how do we clear the auth0 session before throwing the user to the error page? We don’t want to redirect to logout page to clear the session.

Hey there @vijay.tanavade, I apologize for the delay in response!

We have some terrific documentation on logging out users from Auth0 and your application. When you get a chance give it a look below and let me know if you have any questions, thanks!