Skip to content

Commit

Permalink
fix twilio
Browse files Browse the repository at this point in the history
  • Loading branch information
ianmacartney committed Dec 12, 2024
1 parent 1c5b362 commit 74aace4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/convex/otp/TwilioSDK.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const verify = internalAction({
console.error(status);
throw new Error("Code could not be verified");
}
const { user } = await createAccount(ctx, {
const { account } = await createAccount(ctx, {
provider: "twilio",
account: {
id: phone,
Expand All @@ -36,7 +36,7 @@ export const verify = internalAction({
},
shouldLinkViaPhone: true,
});
return { userId: user._id };
return { userId: account.userId };
},
});

Expand Down

0 comments on commit 74aace4

Please sign in to comment.