Skip to content

Commit 45d0ede

Browse files
fix: use fresh instance of request during parseJwt (#15)
* fix: use fresh instance of request during parseJwt
1 parent ce1860c commit 45d0ede

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/JwtGuardDriver.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ public function getParsedJwt(): JwtParser|null
6262
*/
6363
public function user()
6464
{
65+
$this->parsedJwt = $this->parsedJwt ?? $this->parseJwt();
66+
6567
if (!$this->authorizationServerConfig || !$this->parsedJwt) {
6668
return $this->user;
6769
}

0 commit comments

Comments
 (0)