-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[firebase_auth_web] expirationTime returned from IdTokenResult on web is wrong #1875
Comments
This should be fixed in the latest update. Thanks. |
@Ehesp No this is NOT FIXED!! It's even worse now since it doesn't even work on iOS. firebaseUser.getIdTokenResult().then((idTokenResult) {
print("Token expiration ${idTokenResult.expirationTime}");
return idTokenResult.token;
}); On web Replace the above
and web:
Yes, the web throws an exception on the
|
@Ehesp FYI, we currently aren't setup for testing against Android since most fixes correct both mobile (iOS and Android) platforms. I see that fix 47eb554 corrects an incorrect conversion in iOS specific code. You may want to check the Android side too. Thanks for fixing this (although I haven't yet tested it since it's not yet published...) |
Yep Android is working 👍 |
On the web, the
expirationTime
value from anIdTokenResult
is wrong. The token is obtained fromfbUser.getIdToken()
. Printing the value withdebugPrint("Token expiration ${idTokenResult.expirationTime}");
on the web gives a date 50,000 years in the future:the same code on iOS it prints:
using
firebase_auth: 0.15.3+1
which brings infirebase_auth_web 0.1.1+4
The text was updated successfully, but these errors were encountered: