From 8a807ddcdb57627273ed7cf88017b71ea699362d Mon Sep 17 00:00:00 2001 From: Eric Schricker Date: Wed, 6 Oct 2021 05:34:38 +0200 Subject: [PATCH] The behaviour was changed, that claims get reset as default. The PR was originally created here https://github.com/tymondesigns/jwt-auth/pull/2144 by little-apps --- src/Factory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Factory.php b/src/Factory.php index 6037f2f..9aed768 100644 --- a/src/Factory.php +++ b/src/Factory.php @@ -78,7 +78,7 @@ public function __construct(ClaimFactory $claimFactory, PayloadValidator $valida * * @return \PHPOpenSourceSaver\JWTAuth\Payload */ - public function make($resetClaims = false) + public function make($resetClaims = true) { if ($resetClaims) { $this->emptyClaims();