I am trying to pass some user state to the Auth0 Lock Passwordless callbackURL:
Example:
lock.emailcode({
callbackURL: 'http://localhost:3000/',
responseType: 'token',
authParams: {
foo: 'bar',
scope: 'openid name email picture' // Learn about scopes: https://auth0.com/docs/scopes
}
});
I am trying to pass { foo: bar } to the callback page.
Is is possbile? What’s the suggested way of doing so?
Thanks,
Andrea