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
The only time I get a non null value back from netlifyIdentity.currentUser() is in an .on() handler when it is redundant as user is passed to the function anyway.
how do we get the current user info any other time? Other than doing a deep copy of the user object.
The text was updated successfully, but these errors were encountered:
We were figuring out best place to put the token refresh() call. I'm using the global script in a plain paged site, he is using modules in SPA and I guess there are differences.
if you need the user on page load, using .on('init') is probably the more straightforward approach
Yes, I spent a time exploring the various state permutations including browser refresh to understand when init and login are raised. All very sensible :)
The only time I get a non null value back from
netlifyIdentity.currentUser()
is in an.on()
handler when it is redundant asuser
is passed to the function anyway.how do we get the current user info any other time? Other than doing a deep copy of the user object.
The text was updated successfully, but these errors were encountered: