auth0 / auth0-flutter

Auth0 SDK for Flutter
https://pub.dev/documentation/auth0_flutter/latest/
Apache License 2.0
57 stars 36 forks source link

Credentials seem to return wrong expire date #459

Open tikal opened 1 month ago

tikal commented 1 month ago

Checklist

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

desusai7 commented 4 weeks ago

Hi @tikal,

The Unix timestamp and the corresponding date shared by you are equivalent of each other itself right. Attaching a screenshot for you reference.

image

Please let me know if I am missing anything here.