Auth0 Home Blog Docs

Passwordless login previous user email persists

lock
auth0
passwordless

#1

I’ve come across an issue where after using auth0.parseHash on passwordless login email link I am seeing the email address of the previously logged in user in idTokenPayload.email. The only way I can get around this is by “clearing cookies and other site data” in Chrome. Is there a Lock or Auth0.js method I should be calling to do this on logout? (I’ve tried Lock’s logout, but no luck). Otherwise can you tell me what I need to be removing so I can handle this myself?


#2

Hi @jsleeuw

There is a logout() method in the Auth0.js library which calls the /v2/logout authentication endpoint in Auth0, give that a try and see if it resolves your issue.

Hope this helps!


#3

Thanks @charsleysa, that did the trick


#4

Thanks a lot @charsleysa for sharing knowledge and glad you made it work @jsleeuw!


#5

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