Cannot set additionalField when calling signUp.email

I'm trying to pass a referredBy field during user registration using signUp.email, but TypeScript is rejecting it with the following error:

"Object literal may only specify known properties, and 'referredBy' does not exist in type "

  1. I've properly configured `referredBy` in my `auth.ts` configuration:```typescriptuser: {additionalFields: { referredBy: { type: "string", required: false, }, // other fields...}}```
  2. In my `RegisterForm.tsx`, I'm trying to pass the field like this:```typescriptawait signUp.email({email: values.email,password: values.password,name: values.name,referredBy: typeof window !== "undefined" ? localStorage.getItem("referredBy") : null,});```
Solution
I had plugins indented
Was this page helpful?