Invalidate session after unsuccessfull login

I am using action flows to restrict users signing in if email is verified, problem is on the frontend part when i go back to login page after unsuccessfull attempt(without verified email) it still tries to login with same credentials, how can i invalidate or make auth0 “forget” that session, im using auth0 sdk with next

Hi @gigivadachkoria

Welcome back to the Auth0 Community!

To resolve the issue where a user’s session persists even after a failed login attempt due to an unverified email in Auth0, you must ensure the session is cleared correctly. To achieve this, your frontend code needs to check for errors during login and logout user when the error occurs.

Thanks
Dawid

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.