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

Added new expiresAt field for Auth #19

Merged
merged 1 commit into from
Jun 11, 2024

Conversation

daika7ana
Copy link
Contributor

They added a new field on the Auth request that specifies when the returned token will expire on.

{"status":"success","data":{"token":"48944740|EJU0MgzeWY4y1zy9JpQg3cu3cDiqoVg1ZXsIrqLQ","expiresAt":"2024-06-11 07:23:53"}}

Therefore I added the following:

  • A new Auth class property btoken_expires_at that will be set at the same time retrieve_token() is called.
  • A new Auth class method getTokenExpiresAt().
  • A new Fancourier class method getTokenExpiresAt().

Sadly, their expiresAt is a bit vague since it's not your typical json date format that includes timezone information ( eg. 2012-12-25T16:30:00.000000Z. It's just a Y-m-d H:i:s format which I did note down in the code. My guess the timezone is Europe\Bucharest.

@shusaura85 shusaura85 merged commit 86a6d33 into shusaura85:main Jun 11, 2024
@daika7ana daika7ana deleted the token_expiry branch September 4, 2024 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants