Open m-ober opened 2 years ago
The column $expiresColumn stores the expiry timestamp, which is calculated like: $expire = time() + $this->expireTime.
$expiresColumn
$expire = time() + $this->expireTime
OTOH, the code to clean the expired tokens looks like this:
if ($this->cleanExpiredTokensOnLogin) { $this->storage->cleanExpiredTokens(time() - $this->expireTime); }
This leads to the tokens being valid for twice the expireTime.
expireTime
The column
$expiresColumn
stores the expiry timestamp, which is calculated like:$expire = time() + $this->expireTime
.OTOH, the code to clean the expired tokens looks like this:
This leads to the tokens being valid for twice the
expireTime
.