. */ declare(strict_types=1); namespace FireflyIII\Providers; use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider; use Laravel\Passport\Passport; /** * @codeCoverageIgnore * Class AuthServiceProvider */ class AuthServiceProvider extends ServiceProvider { /** * The policy mappings for the application. * * @var array */ protected $policies = [ 'FireflyIII\Model' => 'FireflyIII\Policies\ModelPolicy', ]; /** * Register any authentication / authorization services. */ public function boot(): void { $this->registerPolicies(); Passport::routes(); Passport::tokensExpireIn(now()->addDays(14)); } }