Auth0 Home Blog Docs

invalid token nonce does not match

invalid-token-nonce

#1

I occasionally get an invalid token error logging in with the error of nonce does not match. Today it was logging in to a new machine. I have also noticed that my localStorage has an entry for nonce from auth0 before logging in. After I make an attempt, there are multiple entries for nonce in localStoarge. My hunch is that the localStorage is not getting cleared out, but is that something I have to code for?


#2

I was encountering the same today. This suggestion helped me:
https://github.com/auth0/auth0.js/issues/365#issuecomment-303894369


#3

Thanks for the help. I’ve changed and will see if it now works. The javascript quickstart I downloaded (back in June) didn’t have the options, so never would have found it otherwise.


#4