From b010ff3f8cd8e9ae2a2023ca323fba9987157f60 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Sun, 16 Apr 2023 15:27:47 -0500 Subject: [PATCH] update config file --- stubs/api/config/sanctum.php | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/stubs/api/config/sanctum.php b/stubs/api/config/sanctum.php index bec175df3..dc83da753 100644 --- a/stubs/api/config/sanctum.php +++ b/stubs/api/config/sanctum.php @@ -20,14 +20,28 @@ env('FRONTEND_URL') ? ','.parse_url(env('FRONTEND_URL'), PHP_URL_HOST) : '' ))), + /* + |-------------------------------------------------------------------------- + | Sanctum Guards + |-------------------------------------------------------------------------- + | + | This array contains the authentication guards that will be checked when + | Sanctum is trying to authenticate a request. If none of these guards + | are able to authenticate the request, Sanctum will use the bearer + | token that's present on an incoming request for authentication. + | + */ + + 'guard' => ['web'], + /* |-------------------------------------------------------------------------- | Expiration Minutes |-------------------------------------------------------------------------- | | This value controls the number of minutes until an issued token will be - | considered expired. If this value is null, personal access tokens do - | not expire. This won't tweak the lifetime of first-party sessions. + | considered expired. This will override any values set in the token's + | "expires_at" attribute, but first-party sessions are not affected. | */