auth0-flutter icon indicating copy to clipboard operation
auth0-flutter copied to clipboard

Credentials seem to return wrong expire date

Open tikal opened this issue 8 months ago • 2 comments

Checklist

  • [X] The issue can be reproduced in the auth0_flutter sample app (or N/A).
  • [X] I have looked into the Readme, Examples, and FAQ and have not found a suitable solution or answer.
  • [X] I have looked into the API documentation and have not found a suitable solution or answer.
  • [X] I have searched the issues and have not found a suitable solution or answer.
  • [X] I have searched the Auth0 Community forums and have not found a suitable solution or answer.
  • [X] I agree to the terms within the Auth0 Code of Conduct.

Description

Post web login, Credentials object seems to be created with a date which differs from the UNIX timestamp contained in the accessToken:

Example: DateTime: 2024-06-04T17:07:21.548Z
UNIX Timesampt: 1717517241

This seems to be a TZ issue.

Reproduction

Produce to a webLogin Compare dates when object gets constructed

Additional context

No response

auth0_flutter version

1.7.2

Flutter version

3.19.3

Platform

Android

Platform version(s)

No response

tikal avatar Jun 03 '24 16:06 tikal