From 4ca4a9f83637a2b92cc9f569b20fea2b1c9bd2e6 Mon Sep 17 00:00:00 2001 From: Nick H Date: Wed, 21 Jul 2021 16:03:08 -0600 Subject: [PATCH] $resetClaims parameter is true by default so the claims collection is emptied before a new JWT payload is created. --- src/Factory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Factory.php b/src/Factory.php index e25c1979e..442eee72d 100644 --- a/src/Factory.php +++ b/src/Factory.php @@ -78,7 +78,7 @@ public function __construct(ClaimFactory $claimFactory, PayloadValidator $valida * * @return \Tymon\JWTAuth\Payload */ - public function make($resetClaims = false) + public function make($resetClaims = true) { if ($resetClaims) { $this->emptyClaims();