noob saibotN
Convex Community2y ago
5 replies
noob saibot

Convex Auth Magic Link with Resend: Uncaught Error: Uncaught Error: Index users.email not found.

I'm trying to setup the new Convex Auth in with Magic Link my Nextjs app. I'm following the official tutorial and the demo app. When I call signIn("resend", formData), I'm getting the error:
error Error: [CONVEX A(auth:signIn)] [Request ID: 09412de9cb7c47e3] Server Error
Uncaught Error: Uncaught Error: Index users.email not found.
    at uniqueUserWithVerifiedEmail (../../../../node_modules/@convex-dev/auth/dist/server/implementation.js:881:43)

I must have done some error somewhere but since this is very new, I can't figure out where to look at. I'm running this on localhost.

Here is my auth.config setup:
export default {
  providers: [
    {
      // old setup used before advent of "convex auth"
      domain: process.env.CONVEX_AUTH_PROVIDER_DOMAIN,
      applicationID: "convex",
    },
    {
      // new setup from auth tutorial
      domain: process.env.CONVEX_SITE_URL, // <-- new config
      applicationID: "convex",
    },
  ],
};
Was this page helpful?