You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think that the current example is not working anymore. I am currently using v 10.6.1. And for redux, react, and auth0 working together I did some change to the login function in action.js.
First you have to set redirect:falsewhen declaring Auth0Lock. If you are not doing it the page will be refreshed and your async function will never be called.
Then you need to use lock.on to get event from Auth0Lock and calling your actions. Below a short example.
This helped me a bit to understand. More specifically, it looks like there needs some way to process the successful login after the redirect happens. (that is if you do want the redirect)
I think that the current example is not working anymore. I am currently using v
10.6.1
. And for redux, react, and auth0 working together I did some change to thelogin
function inaction.js
.First you have to set
redirect:false
when declaringAuth0Lock
. If you are not doing it the page will be refreshed and your async function will never be called.Then you need to use
lock.on
to get event fromAuth0Lock
and calling your actions. Below a short example.What do you think?
The text was updated successfully, but these errors were encountered: