This commit is contained in:
as2252258@163.com
2021-05-01 18:28:10 +08:00
parent 734b782c0e
commit 9cbbfbe86f
+3 -3
View File
@@ -461,15 +461,15 @@ mlAZUEjsoaT9vjvjGTxl3uCm0TX5KTgtSJIt2kA1tYVjQef+/iZTHxY=
*/
public function expireRefresh($token = null, $source = null)
{
if (!isset($this->data['token'])) {
return;
}
if (!empty($token)) {
$this->data['token'] = $token;
}
if (!empty($source)) {
$this->data['source'] = $source;
}
if (!isset($this->data['token'])) {
return;
}
$key = $this->authKey($this->getSource(), $this->data['token']);
$this->getRedis()->expire($key, $this->timeout);
}