Skip to content

Commit

Permalink
Applying requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
leoralph committed Sep 27, 2024
1 parent a7c809c commit c72633a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions src/Http/Parser/Cookies.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,9 @@ class Cookies implements ParserContract
*/
private $decrypt;

public function __construct(bool $decrypt = true, ?string $keyName = null)
public function __construct($decrypt = true)
{
$this->decrypt = $decrypt;

if ($keyName) {
$this->setKey($keyName);
}
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Providers/LaravelServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function boot()
new RouteParams(),
(new Cookies(
$config->get('jwt.decrypt_cookies'),
))->setKey($config->get('jwt.cookie_key_name')),
))->setKey($config->get('jwt.cookie_key_name', 'token')),
]);

if (isset($_SERVER['LARAVEL_OCTANE'])) {
Expand Down

0 comments on commit c72633a

Please sign in to comment.