laravel-dropbox icon indicating copy to clipboard operation
laravel-dropbox copied to clipboard

Expires in are stored as a date in the database

Open CasperNH opened this issue 2 years ago • 2 comments

I might be wrong, but as far as I can see, the expires_in is stored as a date in the database.

When calling the function getAccessToken() a unix_timestamp is compared to a date string. This way the refresh token will never be used.

I have changed: if (strtotime($token->expires_in) <= $now) { to: if ($token->expires_in <= $now) {

Hope this makes sense.

CasperNH avatar Jul 26 '22 07:07 CasperNH