Auth0 user Login Issue for Machine to Machine API

Hi Team,
We are using machine-to-machine API services for the Auth0 login flow. Once the user logs into the browser, the old session is still carrying, and we can’t Login with a different email ID. Every time we remove the browser history and verify the flow, Could you please provide any suggestions to solve the issue?

Hi @kotesh.gtpl,

Welcome to the Auth0 Community!

You could use the logout endpoint to clear the session, allowing you to try logging in again with a different email. The logout endpoint has the format https://{yourDomain}/v2/logout.

(Reference: Logout)


1 Like

Hi @rueben.tiow
Thanks for your support. I tried with the Logout API also. But still, a browser session exists. I’m using the machine-to-machine API services.
API Used
curl --request GET
–url ‘https://{yourDomain}/v2/logout’
–header ‘content-type: application/json’
–data ‘{“client_id”:“{yourClientId}”, “returnTo”:“LOGOUT_URL”}’


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