laravel-dropbox
laravel-dropbox copied to clipboard
Expires in are stored as a date in the database
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.