Skip to content

Commit

Permalink
Merge pull request #20 from DellanX/patch-1
Browse files Browse the repository at this point in the history
Setting to disable tokens_can
  • Loading branch information
ronvanderheijden authored Apr 19, 2024
2 parents 81f3d70 + e93f547 commit 68e97f1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Laravel/PassportServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ public function boot()
__DIR__ . '/config/openid.php' => $this->app->configPath('openid.php'),
], ['openid', 'openid-config']);

Passport\Passport::tokensCan(config('openid.passport.tokens_can'));
$tokens_can = config('openid.passport.tokens_can', null);
if ($tokens_can) {
Passport\Passport::tokensCan($tokens_can);
}
}

public function makeAuthorizationServer(): AuthorizationServer
Expand Down

0 comments on commit 68e97f1

Please sign in to comment.