Open aluu4445 opened 3 months ago
When I login on Android, the returned Credentials object has an expiresAt value that is off by 7 hours.
Credentials
expiresAt
Here is the relevant code snippet from the sample app with a print statement that I added:
final result = await webAuth.login( redirectUrl: dotenv.env['AUTH0_REDIRECT_URI'], audience: dotenv.env['AUTH0_AUDIENCE'], ); setState(() { _isLoggedIn = true; }); output = result.idToken; print(result.expiresAt.difference(DateTime.now()));
I would expect this to be close to my access token lifetime of 5 minutes.
Here is the printed value that I get: -6:55:01.311274
-6:55:01.311274
DateTime.now()
No response
1.6.0
3.16.9
Android
Checklist
Description
When I login on Android, the returned
Credentials
object has anexpiresAt
value that is off by 7 hours.Here is the relevant code snippet from the sample app with a print statement that I added:
I would expect this to be close to my access token lifetime of 5 minutes.
Here is the printed value that I get:
-6:55:01.311274
Reproduction
expiresAt
value in the returnedCredentials
objectexpiresAt
value andDateTime.now()
Additional context
No response
auth0_flutter version
1.6.0
Flutter version
3.16.9
Platform
Android
Platform version(s)
No response