Open camel113 opened 7 years ago
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)
https://github.com/amaurymartiny/react-redux-auth0-kit/blob/master/src/containers/App/AppView.js
Hi, any updates on this, the current example doesn't work with latest react and lock :(
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 setredirect: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 uselock.on
to get event fromAuth0Lock
and calling your actions. Below a short example.What do you think?