Skip to content

Fix refresh_token check - #19

Open
patrickbergman wants to merge 1 commit into
dcblogdev:masterfrom
patrickbergman:patch-1
Open

Fix refresh_token check#19
patrickbergman wants to merge 1 commit into
dcblogdev:masterfrom
patrickbergman:patch-1

Conversation

@patrickbergman

Copy link
Copy Markdown

Fix the refresh token check with help of carbon package.

The $now = time() + 300 results in an integer, while the $token->expires_in is a datetime string.
This check will therefor always fail.

With this change it will just look at the expires_in date and checks if it is in the past or not.

Fix the refresh token check with help of carbon package
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.

1 participant