Auth0 Home Blog Docs

How to pass parameters with auth0-js (like params with lock) ?

auth0js
custom-param

#1

Hi.
How can i keep state of my apps when i use redirect flow in Auth0-js like i could with Lock (auth.params) ?
To be able to store an url to redirect after the login is complete for exemple.

Thanks.


#2

Found it :
Pass state with any value to loginWithCredentials.
An other feature not documented. https://auth0.com/docs/libraries/auth0js/v8#webauth-redirect-loginwithcredentials-

You have the worst documentation ever…


#3