Skip to content

Commit

Permalink
fix analytics sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
“Giems” committed Jun 27, 2024
1 parent 7ad90ad commit 6da8aa9
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion sdk/packages/analytics/src/test_utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6da8aa9

Please sign in to comment.