user.getIdToken() Throwing Error #5990
Replies: 2 comments 4 replies
-
Hi there 👋 - this looks like an issue more than a discussion, but opening it as a discussion avoids the issue template which would allow me to do a quick scan to make sure all the dependencies / versions in use are up to date. So you'll have to attest to that - are you using the latest / current stable releases of all the things in play here? Hopefully so. It does not appear that you are doing anything wrong, but typically an The API documents token as nullable, though does not describe the conditions where it would be null - I think it's an async process so perhaps the token is still being minted and it will be available later? unknown. https://firebase.google.com/docs/reference/ios/firebaseauth/api/reference/Classes/FIRUser#-getidtokenresultwithcompletion: I was about to dig in and see if our e2e probed this case, then your mention of simulator working / real device not working gave me pause. Could even be device specific? Opens up a bunch more questions about reproducibility etc https://stackoverflow.com/help/how-to-ask I can only assume since you used "Simulator" vs "Emulator" that this is on iOS? Does it happen on Android? |
Beta Was this translation helpful? Give feedback.
-
@mikehardy Finally figured it out.... Saw a log in xcode showing the token stored on my device expired on 11/23/2021 which was strange.. Called Even more frustrating, I bought a new iPhone last year and this token was even apparently transferred from the old phone since this issue was happening on the old one as well. Yes, I've been fighting this issue since last year.. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
Having some issues extracting the id token from the firebase user.
For example, when trying to extract the token immediately after a user logs in, the token is undefined.
Edit: This is only happening on my physical device. Simulator is working correctly.
and if I try to extract the token deeper in my component tree, I'm receiving an error
[Error: [auth/internal-error] An internal error has occurred, please try again.]
Am I doing something incorrectly here?
Thanks,
Joe
Beta Was this translation helpful? Give feedback.
All reactions