AlviA
Convex Community11mo ago
7 replies
Alvi

shouldLinkViaEmail not working as intended

is have set shouldLinkViaEmail to false, but still the sign up accounts are linked by email. here is the code:
 const account = await createAccount<DataModel>(ctx, {
              provider,
              account: { id: email, secret },
              profile: {
                ...fields,
                phoneVerificationTime: Date.now(),
              },
              shouldLinkViaEmail: false,
              shouldLinkViaPhone: true,
            });
Was this page helpful?