auth0 / auth0-flutter

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

Expires Token not on local Time on IOS #330

Closed Rajaotix closed 10 months ago

Rajaotix commented 11 months ago

Checklist

Description

Hi all,

After the issue was resolved on Android on the latest version ( 1.3.0) , It comes to IOS now. When you try to use crendetials.expiresAt on Ios, it seems that it doesn't convert the date to UTC. image On Android, it give me the right time : image But on Ios : image

NB : I set the expiration token time at 180s on Auth0.

Reproduction

  1. call this "credentials.expiresAt" on Ios
  2. Print the result.
  3. You will get the wrong result.

Additional context

No response

auth0_flutter version

1.3.0

Flutter version

3.10.0

Platform

iOS

Platform version(s)

16.4

Widcket commented 11 months ago

Hi @Rajaotix, thanks for raising this.

The iOS screenshot is blurry, and I'm unable to make out the date. Could you please update the screenshot to clearly show the issue?

Widcket commented 11 months ago

BTW you don't need to pass the same set of scopes you used on login when renewing the credentials. The ability to pass scopes on renewal is for downscoping the access token.

Rajaotix commented 11 months ago

Hi @Rajaotix, thanks for raising this.

The iOS screenshot is blurry, and I'm unable to make out the date. Could you please update the screenshot to clearly show the issue?

Hi @Widcket Thanks for replying. It's updated now. I found temporary solution image

Widcket commented 11 months ago

Hi @Rajaotix, I'm unable to reproduce this on the example app included in this repository.

With a 24h expiration value:

Android

Screenshot 2023-11-01 at 21 36 02

iOS

Screenshot 2023-11-01 at 21 38 43

Can you please confirm that you can indeed reproduce this on the Quickstart sample app?

Rajaotix commented 11 months ago

Hi @Widcket okay I will try it.

Widcket commented 10 months ago

Closing due to inactivity. Please feel free to ping if you'd prefer to reopen.