Skip to content

Commit 74aace4

Browse files
committed
fix twilio
1 parent 1c5b362 commit 74aace4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/convex/otp/TwilioSDK.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export const verify = internalAction({
2626
console.error(status);
2727
throw new Error("Code could not be verified");
2828
}
29-
const { user } = await createAccount(ctx, {
29+
const { account } = await createAccount(ctx, {
3030
provider: "twilio",
3131
account: {
3232
id: phone,
@@ -36,7 +36,7 @@ export const verify = internalAction({
3636
},
3737
shouldLinkViaPhone: true,
3838
});
39-
return { userId: user._id };
39+
return { userId: account.userId };
4040
},
4141
});
4242

0 commit comments

Comments
 (0)