Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access Token Expiration error #2379

Open
5 tasks done
RaphaelNSG opened this issue Apr 9, 2024 · 1 comment
Open
5 tasks done

Access Token Expiration error #2379

RaphaelNSG opened this issue Apr 9, 2024 · 1 comment

Comments

@RaphaelNSG
Copy link

Checklist before submitting a bug report

Xcode version

15.3

Facebook iOS SDK version

17.0.0

Dependency Manager

Other / I don't know

SDK Framework

Login

Goals

I want to know the real access token expiration date.

Expected results

When i has an access token i can't check the expiration date.

Actual results

When i login on IOS using classic login the expiration date of the access token is wrong: 4001-01-01 00:00:00 +0000

Steps to reproduce

I used the login example that comes with the plugin. The only change that i mad was add a new label to show the expiration: expirationLabel.text = accessToken?.expirationDate.description ?? Self.missingAccessToken

Code samples & details

In the `LoginDetails.storyboard` i added a new label and in the `LoginDetailsViewController` i filled the label with the access token expiration: `expirationLabel.text = accessToken?.expirationDate.description ?? Self.missingAccessToken`
@RaphaelNSG
Copy link
Author

I got a way to fix token expiration by just calling refresh token after successful login. This is my login flow:

  • Log in to Facebook (the expiration date is wrong)
  • Call token update (expiry date is now correct)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant