We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c5b362 commit 74aace4Copy full SHA for 74aace4
test/convex/otp/TwilioSDK.ts
@@ -26,7 +26,7 @@ export const verify = internalAction({
26
console.error(status);
27
throw new Error("Code could not be verified");
28
}
29
- const { user } = await createAccount(ctx, {
+ const { account } = await createAccount(ctx, {
30
provider: "twilio",
31
account: {
32
id: phone,
@@ -36,7 +36,7 @@ export const verify = internalAction({
36
},
37
shouldLinkViaPhone: true,
38
});
39
- return { userId: user._id };
+ return { userId: account.userId };
40
41
42
0 commit comments