belterB
Convex Community6mo ago
21 replies
belter

authTables Error

🔑AuthResolved
Hello, well I'm trying to use authTables in a clean schema (clean project) but throw me an error...

im using convex as a package (turborepo)

I'm using:
"@auth/core": "^0.40.0",
"@convex-dev/auth": "^0.0.89",
"convex": "^1.27.1"


Error:
Argument of type '{ users: TableDefinition<VObject<{ name: string; email: string; phone: string; image: string; emailVerificationTime: number; phoneVerificationTime: number; }, { name: VString<string, "required">; email: VString<...>; phone: VString<...>; image: VString<...>; emailVerificationTime: VFloat64<...>; phoneVerificationTim...' is not assignable to parameter of type 'GenericSchema'.
Property 'authSessions' is incompatible with index signature.
Type 'TableDefinition<VObject<{ userId: Id<"users">; expirationTime: number; }, { userId: VId<Id<"users">, "required">; expirationTime: VFloat64<number, "required">; }, "required", "userId" | "expirationTime">, { ...; }, {}, {}>' is not assignable to type 'TableDefinition<Validator<any, any, any>, {}, {}, {}>'.
Types have separate declarations of a private property 'indexes'.ts(2345)

Can anyone help me or guideme to fix this problem?
thanks!
image.png
image.png
Was this page helpful?