# Auth0 user Login Issue for Machine to Machine API

**URL:** <https://community.auth0.com/t/auth0-user-login-issue-for-machine-to-machine-api/121691>\
**Category:** Get Help\
**Tags:** users, management-api\
**Created:** [November 27, 2023, 10:06am UTC](https://community.auth0.com/t/auth0-user-login-issue-for-machine-to-machine-api/121691 "2023-11-27T10:06:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kotesh.gtpl](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kotesh.gtpl/32/50422_2.png) [@kotesh.gtpl](https://community.auth0.com/u/kotesh.gtpl)\
**Post date:** [November 27, 2023, 10:06am UTC](https://community.auth0.com/t/auth0-user-login-issue-for-machine-to-machine-api/121691/1 "2023-11-27T10:06:52Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [November 30, 2023, 12:52am UTC](https://community.auth0.com/t/auth0-user-login-issue-for-machine-to-machine-api/121691/3 "2023-11-30T00:52:11Z")

</div>

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](https://auth0.com/docs/authenticate/login/logout))

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![kotesh.gtpl](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kotesh.gtpl/32/50422_2.png) [@kotesh.gtpl](https://community.auth0.com/u/kotesh.gtpl)\
**Post date:** [December 1, 2023, 8:52am UTC](https://community.auth0.com/t/auth0-user-login-issue-for-machine-to-machine-api/121691/4 "2023-12-01T08:52:35Z")

</div>

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”}’

Thanks,  
Kotesh.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [December 15, 2023, 8:52am UTC](https://community.auth0.com/t/auth0-user-login-issue-for-machine-to-machine-api/121691/5 "2023-12-15T08:52:40Z")

</div>

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