Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
hafezdivandari committed Sep 29, 2024
1 parent 93f0422 commit 6623bb6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/PassportServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use DateInterval;
use Illuminate\Auth\Events\Logout;
use Illuminate\Config\Repository as Config;
use Illuminate\Contracts\Auth\StatefulGuard;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Cookie;
Expand All @@ -20,7 +21,6 @@
use Lcobucci\JWT\Token\Parser;
use League\OAuth2\Server\AuthorizationServer;
use League\OAuth2\Server\CryptKey;
use League\OAuth2\Server\CryptKeyInterface;
use League\OAuth2\Server\Grant\AuthCodeGrant;
use League\OAuth2\Server\Grant\ClientCredentialsGrant;
use League\OAuth2\Server\Grant\ImplicitGrant;
Expand Down Expand Up @@ -247,9 +247,9 @@ protected function registerResourceServer(): void
/**
* Create a CryptKey instance.
*/
protected function makeCryptKey(string $type): CryptKeyInterface
protected function makeCryptKey(string $type): CryptKey
{
$key = str_replace('\\n', "\n", config("passport.{$type}_key", ''));
$key = str_replace('\\n', "\n", $this->app->make(Config::class)->get("passport.{$type}_key", ''));

if (! $key) {
$key = 'file://'.Passport::keyPath('oauth-'.$type.'.key');
Expand Down

0 comments on commit 6623bb6

Please sign in to comment.