auth with session

This commit is contained in:
2025-04-28 16:32:12 +03:30
parent c966f38236
commit fb750a0dc8
23 changed files with 900 additions and 81 deletions

View File

@@ -12,7 +12,10 @@ return Application::configure(basePath: dirname(__DIR__))
health: '/up',
)
->withMiddleware(function (Middleware $middleware) {
$middleware->web()->statefulApi();
$middleware->validateCsrfTokens(except: [
'/auth/login' // <-- exclude this route
]);
$middleware->statefulApi();
})
->withExceptions(function (Exceptions $exceptions) {
//