Skip to content

Commit 49b218b

Browse files
authored
Update TokenInfo.php
1 parent 796e187 commit 49b218b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Auth/TokenInfo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public function __construct(string $token, int $expiresAt)
2020
{
2121
$this->token = $token;
2222
$this->expiresAt = $expiresAt;
23-
$this->refreshAt = time() + round(0.1*($this->expiresAt-time()),0);
23+
$this->refreshAt = time() + round(TokenInfo::_PRIVATE_REFRESH_RATIO*($this->expiresAt-time()),0);
2424
}
2525

2626
/**

0 commit comments

Comments
 (0)