Skip to content

Fix refresh token. expires_in has date format, not integer #18

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yaroslawww
Copy link

now()+300 returns integer value. And this value can't be compared with string datetime expires_in saved in database (see migration file). So app never uses a refresh token.

Also, reduced supported versions to allow automatically do casts in model.

@rickkuilman
Copy link

Ran into the same issue today! I've fixed it by casting expires_in to timestamp, but this solution is cleaner by honoring the database type of DATETIME.

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