From 6da8aa957d02b097af9b6ac9c7f8b782848200aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CGiems=E2=80=9D?= <“hubert.wabia@gmail.com”> Date: Thu, 27 Jun 2024 11:53:40 +0200 Subject: [PATCH] fix analytics sdk --- sdk/packages/analytics/src/test_utils.ts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/sdk/packages/analytics/src/test_utils.ts b/sdk/packages/analytics/src/test_utils.ts index 6fd89dbf..7bbe5383 100644 --- a/sdk/packages/analytics/src/test_utils.ts +++ b/sdk/packages/analytics/src/test_utils.ts @@ -21,7 +21,18 @@ export async function createUser( } as HttpRegisterWithPasswordStartRequest await cloudClient.registerWithPasswordStart(registerPayload) - await cloudClient.registerWithPasswordFinish({ authCode: '123456', email, newPassword: password }) + + const verifyResponse = await cloudClient.verifyCode({ + email, + code: '123456', + action: 'registerPassword' + }) + + await cloudClient.registerWithPasswordFinish({ + authCode: verifyResponse.verificationCode, + email, + newPassword: password + }) const loginPayload = { email,