In web.php, I have set this route:
web.php
Route::middleware(\'auth:sanctum,expiration:1\')->get(\'/test\', [TestConnections::class, \'test\']);.
Route::middleware(\'auth:sanctum,expiration:1\')->get(\'/test\', [TestConnections::class, \'test\']);