Skip to content

Commit

Permalink
update sanctum configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Sep 28, 2023
1 parent 3e6d9d0 commit 22668a6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config/sanctum.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

use Illuminate\Cookie\Middleware\EncryptCookies;
use Illuminate\Foundation\Http\Middleware\ValidateCsrfToken;
use Laravel\Sanctum\Http\Middleware\AuthenticateSession;
use Laravel\Sanctum\Sanctum;

return [
Expand Down Expand Up @@ -62,8 +63,9 @@ class_exists(Sanctum::class) ? Sanctum::currentApplicationUrlWithPort() : ''
*/

'middleware' => [
'validate_csrf_token' => ValidateCsrfToken::class,
'authenticate_session' => AuthenticateSession::class,
'encrypt_cookies' => EncryptCookies::class,
'validate_csrf_token' => ValidateCsrfToken::class,
],

];

0 comments on commit 22668a6

Please sign in to comment.