Skip to content

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

Open
yaroslawww wants to merge 1 commit into
dcblogdev:masterfrom
yaroslawww:master
Open

Fix refresh token. expires_in has date format, not integer#18
yaroslawww wants to merge 1 commit into
dcblogdev:masterfrom
yaroslawww:master

Conversation

@yaroslawww

Copy link
Copy Markdown

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
Copy Markdown

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