Remove cookie serialization

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-07-22 13:49:47 +01:00
parent 30835fe9ba
commit 09abcb44bb
2 changed files with 1 additions and 3 deletions

View file

@ -20,5 +20,5 @@ class EncryptCookies extends BaseEncrypter
*
* @var bool
*/
protected static $serialize = true;
protected static $serialize = false;
}

View file

@ -87,11 +87,9 @@ class AuthServiceProvider extends ServiceProvider
]);
$this->registerPolicies();
//Passport::routes(); //this is no longer required in newer passport versions
Passport::tokensExpireIn(Carbon::now()->addYears(config('passport.expiration_years')));
Passport::refreshTokensExpireIn(Carbon::now()->addYears(config('passport.expiration_years')));
Passport::personalAccessTokensExpireIn(Carbon::now()->addYears(config('passport.expiration_years')));
Passport::withCookieSerialization();
/**