diff --git a/src/Auth/Struct/JwtPayload.php b/src/Auth/Struct/JwtPayload.php index 9d84a84..ebcc3aa 100644 --- a/src/Auth/Struct/JwtPayload.php +++ b/src/Auth/Struct/JwtPayload.php @@ -26,6 +26,8 @@ final class JwtPayload private int $authTime; + private ?string $nonce; + private bool $nonceSupported; public function __construct( @@ -39,7 +41,8 @@ public function __construct( bool $emailVerified, bool $isPrivateEmail, int $authTime, - bool $nonceSupported + bool $nonceSupported, + ?string $nonce ) { $this->iss = $iss; $this->aud = $aud; @@ -52,6 +55,7 @@ public function __construct( $this->isPrivateEmail = $isPrivateEmail; $this->authTime = $authTime; $this->nonceSupported = $nonceSupported; + $this->nonce = $nonce; } public function getIss(): string @@ -104,6 +108,11 @@ public function getAuthTime(): int return $this->authTime; } + public function getNonce(): ?string + { + return $this->nonce; + } + public function isNonceSupported(): bool { return $this->nonceSupported;