twofa schema is missing

SERVER_ERROR: [Error [BetterAuthError]: [# Drizzle Adapter]: The model "twoFactor" was not found in the schema object. Please pass the schema directly to the adapter options.] {
cause: undefined
}
POST /api/auth/two-factor/enable 500 in 987ms
Solution
had to export it
Was this page helpful?