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

Fix refresh_token check

Open patrickbergman opened this issue 2 years ago • 0 comments

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.

patrickbergman avatar Oct 23 '23 09:10 patrickbergman