Replies: 2 comments
-
|
This probably best asked on stackoverflow |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
is there an example for this ? or is this even supported by this package? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I've implemented the passwordless flow and it works well
What I am doing is, instead of listening to
onAuthStateChangeI simply mark the user as logged in after successfulsignInWithEmailLinkIs store a
loggedInboolean in my store and I send the uid token anytime I perform a request to my api, which checks the token validity.In case it's not valid anymore, I catch the error response and I force a logout in the app.
Is what I am doing ok?
My doubt is I should probably use the
onAuthStateChangecallback to mark the user as logged but my feeling is ifsignInWithEmailLinkI am sure the user has a session.thanks
Beta Was this translation helpful? Give feedback.
All reactions