Auth0 Home Blog Docs

Concerns about access token in URL and browser history

lock

#1

Hi everyone,

I’m using the latest version of lock (11.9.0) and I have some concerns about the security of redirect mode. During login in redirect mode the access token is passed to the redirect URL and is visible for a second in the browser address bar and it also appears in the browser history. My question is, is exposing the access token in the URL secure given that someone with physical access to the users computer could copy it from the browser history after the user has logged out and use it to access the API as the user until the token expires?


#2

Any updates to this?


#3

Hi Andres. If you do not have MFA requirements setting auth: { redirect: false } will stop showing id_token in url. have you tried this ?


#4

Can you set the reponse mode in Lock to “form_post”? This uses a POST to the redirect URI, rather than a GET and so the token doesn’t get placed in the URL and so end up in the browser history.