How to config Laravel passport

S-Cart uses package  laravel/passport to create API in system.
From S-Cart version 6.5, you can change important Laravel passport configurations in the file  "s-cart/config/passport.php"

SCart-folder/
├── app
├── config
│     ├── passport.php

Some important information regarding token expiration time:

    'config'    => [
        'tokensExpireIn' => env('PASSPORT_TOKEN_EXPIREIN', '15'), // the number of days the token will expire (days)
        'refreshTokensExpireIn' => env('PASSPORT_REFRESH_TOKEN_EXPIREIN', '30'), // the number of days the refresh  token will expire  (days)
        'personalAccessTokensExpireIn' => env('PASSPORT_PERSONAL_ACCESS_TOKEN_EXPIREIN', '6'), // the number of months the personal  token will expire (months)
    ],


You can directly edit the configuration content in the config. But best, create the variables and configuration in the .env 

Related topics

Latest Document