I’ve struggled for some time to get identity work with React and I still come across issues. Have a look at this deployment:
https://romantic-davinci-c26b02.netlify.com/login
repo: https://github.com/abtx/identity-widget
I assume that these should be true:
- widget connects to whatever APIs needs, and redirects
- user is available in netlifyIdentity after the redirect is complete using netlifyIdentity.currentUser()
This flow is true on Safari,
On Chrome and FF, I get this behaviour:
- widget connects to whatever APIs needs, and redirects
- netlifyIdentity.currentUser() returns null
Please help me understand why the code works differently between browsers and what’s the correct implementation.