Skip to content

Commit df96a7c

Browse files
authored
Revert "Revert "When the access_token expired the check not valid here"" (#9)
1 parent 912e282 commit df96a7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Models/OauthToken.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ class OauthToken extends Model
1515

1616
public function hasExpired()
1717
{
18-
return now()->gte($this->updated_at->addSeconds($this->expires_in));
18+
return now()->timestamp > $this->expires_in;
1919
}
2020
}

0 commit comments

Comments
 (0)