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,