Skip to content

Commit

Permalink
Update UpdateEmail.php
Browse files Browse the repository at this point in the history
Signed-off-by: Nathanael Esayeas <nathanael.esayeas@protonmail.com>
  • Loading branch information
ghostwriter committed May 10, 2024
1 parent f85c419 commit 916ab29
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Com/Atproto/Server/UpdateEmail.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public function __construct(
public function __invoke(
UriInterface $pdsUri,
string $email = null,
?bool $emailAuthFactor = null,
?string $token = null,
): RequestInterface {
$request = $this->requestFactory
Expand All @@ -44,6 +45,7 @@ public function __invoke(

$jsonBody = json_encode(array_filter([
'email' => $email,
'emailAuthFactor' => $emailAuthFactor,
'token' => $token,
]));

Expand Down

0 comments on commit 916ab29

Please sign in to comment.