feat: clean devices tokens and sanctum expiration

This commit is contained in:
2026-05-21 21:53:13 +02:00
parent 55215b2c36
commit 417a1bc53c
5 changed files with 97 additions and 3 deletions
+3 -2
View File
@@ -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');
});