diff --git a/app/controllers/api/account.php b/app/controllers/api/account.php index d630743f8c..378ed52c6a 100644 --- a/app/controllers/api/account.php +++ b/app/controllers/api/account.php @@ -4959,7 +4959,7 @@ App::put('/v1/account/mfa/webauthn/challenge') // Update authenticator as counter has changed $dbForProject->updateDocument('authenticators', $authenticator['id'], new Document([ - 'data' => $publicKeyCredential->jsonSerialize() + 'data' => json_encode($publicKeyCredential) ]));