Auth0 Home Blog Docs

Pass a parameter to callback url using auth0.WebAuth.login?



I know for sure we can pass a variable to auth0.WebAuth.authorize (via the state parameter), so we can get this variable back on our callback url. (usefull for example to know from which url we are coming from at the beginning).

But my question is can we do the same with the login method on auth0.WebAuth ?

I tried to use the state parameter, but if I put any value in this param, the redirect is not working anymore …

1 Like