Schema error when setting up org plugin
Im getting a Drizzle adapter error when setting up orgs in a project saying it can't find model member even though it is there in the schema and server setup.
error: # SERVER_ERROR: [BetterAuthError: [# Drizzle Adapter]: The model "member" was not found in the schema object. Please pass the schema directly to the adapter options.] {
cause: undefined
}
project: https://github.com/isakgustavsen/infoskjerm/tree/main
GitHub
GitHub - isakgustavsen/infoskjerm
Contribute to isakgustavsen/infoskjerm development by creating an account on GitHub.
Solution:Jump to solution
Removing the prefixes and running using the beta has fixed it though i do not know if both were required
2 Replies
Solution
Removing the prefixes and running using the beta has fixed it though i do not know if both were required
Here is the issue with the solution. https://github.com/better-auth/better-auth/issues/2693
GitHub
Organization plugin causes CLI to generate bad Drizzle schema · Is...
Is this suited for github? Yes, this is suited for github To Reproduce Configure Better Auth to use the organization plugin and the Drizzle adapter Attempt to generate Drizzle schema, for Neon Post...