feat: clean devices tokens and sanctum expiration
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
|
||||
it('schedules expired auth token cleanup commands', function () {
|
||||
it('schedules expired auth and stale device token cleanup commands', function () {
|
||||
Artisan::call('schedule:list', [
|
||||
'--json' => true,
|
||||
]);
|
||||
@@ -12,5 +12,6 @@ it('schedules expired auth token cleanup commands', function () {
|
||||
|
||||
expect($commands)
|
||||
->toContain('php artisan sanctum:prune-expired --hours=24')
|
||||
->toContain('php artisan auth:clear-resets');
|
||||
->toContain('php artisan auth:clear-resets')
|
||||
->toContain('php artisan device-tokens:prune-stale --days=180');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user