make nonce optional
rvr-nextgen/pipeline/head This commit looks good
rvr-nextgen/pipeline/tag This commit looks good

This commit is contained in:
bence committed 2025-08-20 01:17:37 +02:00
1 parent 6e1ee839ba
commit d82e17422c
4 files changed
+9 -5

No files matched your search

+3 -3
View File
@@ -19,7 +19,7 @@ class OAuthSession extends Model
private array $scope = [];
private string $nonce = '';
private ?string $nonce = '';
private ?string $codeChallenge = null;
@@ -52,7 +52,7 @@ class OAuthSession extends Model
$this->setScopeArray(explode(' ', $scope));
}
public function setNonce(string $nonce): void
public function setNonce(?string $nonce): void
{
$this->nonce = $nonce;
}
@@ -125,7 +125,7 @@ class OAuthSession extends Model
return $this->scope;
}
public function getNonce(): string
public function getNonce(): ?string
{
return $this->nonce;
}