skip to Main Content

currentAccessToken()->delete throw exception on test but works fine in real – PHP Versions

Sanctum Version: ^2.11.2 Laravel Version: 8.54 PHP Version: 7.3|^8.0 Database Driver & Version: Description: deleting current user token works fine but in test it throw exception Steps To Reproduce: routes/api.php Route::prefix('auth')->middleware('auth:sanctum')->group(function () { Route::delete('/sign_out', [AuthController::class, 'signOut']); /// other routes });…

VIEW QUESTION
Back To Top
Search