I'm getting the following error message, when calling
authClient.twoFactor.enable
authClient.twoFactor.enable
:
# SERVER_ERROR: [BetterAuthError: The field "id" does not exist in the "twoFactor" schema. Please update your drizzle schema or re-generate using "npx @better-auth/cli generate".] { cause: undefined}
# SERVER_ERROR: [BetterAuthError: The field "id" does not exist in the "twoFactor" schema. Please update your drizzle schema or re-generate using "npx @better-auth/cli generate".] { cause: undefined}
AFAIK, the twoFactor table doesn't need an ID column and the documentation doesn't mention one.