diff --git a/app/Models/OauthToken.php b/app/Models/OauthToken.php index d2b1786..d18c13d 100644 --- a/app/Models/OauthToken.php +++ b/app/Models/OauthToken.php @@ -15,6 +15,6 @@ class OauthToken extends Model public function hasExpired() { - return now()->gte($this->updated_at->addSeconds($this->expires_in)); + return now()->timestamp > $this->expires_in; } }