Skip to content

Commit

Permalink
Revert "When the access_token expired the check not valid here" (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
salkhwlani authored Dec 5, 2021
1 parent 8267579 commit 912e282
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Models/OauthToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ class OauthToken extends Model

public function hasExpired()
{
return now()->timestamp > $this->expires_in;
return now()->gte($this->updated_at->addSeconds($this->expires_in));
}
}

0 comments on commit 912e282

Please sign in to comment.