Skip to content

Commit

Permalink
update config file
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Apr 16, 2023
1 parent 23714a5 commit b010ff3
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions stubs/api/config/sanctum.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
|
*/

Expand Down

0 comments on commit b010ff3

Please sign in to comment.