Replies: 1 comment 3 replies
-
Starting with this then through this finally using the credential with this As for why it expired there are a few reasons - usually to do with device time, one of the niftiest is discovering how many kids use their parent's phone and try to get around various controls by altering device time to some far future date. But basically "device time out of sync" so the one hour token life is deemed to be expired As for why it did not refresh, there are some reasons - I don't recall the specifics (apologies) but there is an API in google cloud where if disabled no token refreshes succeed! Which is pretty frustrating However, as a UX it can be jarring - that said I've seen it handled well as a user from time to time in other apps and it can come about when as a user you are using an app that allows multiple devices to be logged in at once but then as a user for security reasons you revoke the access on all devices from one device. Then on all the other devices this will happen. Facebook I think lets you log out of other sessions this way as does whatsapp IIRC. And all you can do is just popup on the user saying "Your login session has expired / you need to login again to continue working" etc |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey there, thanks for a great library. Have a question here.
I'm using phone auth. Calling
getIdTokenResult
is giving this error to our users sometimes:I didn't even know this was possible. I expected that with the refresh token, users would never get logged out or have a credential expire.
In any case, from some googling, I found that I need to "reauthenticate" the user using their credential.
Are there any notes for how to do this with phone number? Is the expectation that I sign them out? This can be a bit jarring as a UX if they're in the middle of something.
Perhaps I'm totally missing something, in which case, thank you to anyone who can provide some guidance!
Is there a way to just use the refresh token here?
Beta Was this translation helpful? Give feedback.
All reactions