Skip to content

Commit 4e3f86e

Browse files
committed
Update
Renew token if less than 1 minute left on token
1 parent 6aad67e commit 4e3f86e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Support/Token/Base.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function expires()
5858

5959
public function hasExpired()
6060
{
61-
return time() > $this->expires;
61+
return time() + 60 > $this->expires;
6262
}
6363

6464
public function authenticated()

0 commit comments

Comments
 (0)