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
Describe the bug
The below error gets thrown when trying to read the IdTokenResult expiration time. I believe that this is due to this line, where you should provide a unix timestamp in the form of an int instead of a DateTime object. This occurs on flutter linux and flutter windows
Steps to reproduce
Steps to reproduce the behavior:
Use the sample code below
Expected behavior
Expected to get the actual token expiration time.
Sample code
final user =await _fbAuth.signInWithEmailAndPassword(email: email, password: password);
IdTokenResult tokenResult =await user.getIdTokenResult();
print(tokenResult.expirationTime); // Error
Additional context
Stack trace:
type 'DateTime' is not a subtype of type 'int'
File "id_token_result.dart", line 38, col 50, in IdTokenResult.expirationTime
Bug report
Describe the bug
The below error gets thrown when trying to read the IdTokenResult expiration time. I believe that this is due to this line, where you should provide a unix timestamp in the form of an int instead of a DateTime object. This occurs on flutter linux and flutter windows
Steps to reproduce
Steps to reproduce the behavior:
Expected behavior
Expected to get the actual token expiration time.
Sample code
Additional context
Stack trace:
Package versions:
My current workaround for this is to parse the JWT myself from
IdTokenResult.token
and read theexp
field.The text was updated successfully, but these errors were encountered: