Skip to content

Commit 9baae34

Browse files
committed
clear expires token
1 parent 6b6a9ed commit 9baae34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Command/PurgeTokenCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,13 @@ private function clear()
7070

7171
$token = Db::connection(config('oauth.provider', 'default'))
7272
->table('oauth_access_tokens')
73-
// ->where('expires_at', '<=', $now)
73+
->where('expires_at', '<=', $now)
7474
->orWhere('revoked', 1)
7575
->delete();
7676

7777
$refresh = Db::connection(config('oauth.provider', 'default'))
7878
->table('oauth_refresh_tokens')
79-
// ->where('expires_at', '<=', $now)
79+
->where('expires_at', '<=', $now)
8080
->orWhere('revoked', 1)
8181
->delete();
8282
}

0 commit comments

Comments
 (0)