chore: remove incorrect auth cli (#6242)

This commit is contained in:
Maxwell
2025-11-23 22:37:42 -08:00
committed by GitHub
parent 210a8286d8
commit bbd1d183f9
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -61,7 +61,7 @@ export const auth = betterAuth({
<Callout type="warn">
Please make sure that your Drizzle schema has the necessary relations defined.
If you do not see any relations in your Drizzle schema, you can manually add them using the [`relation`](https://orm.drizzle.team/docs/relations) drizzle-orm function
or run our latest CLI version `npx auth@latest generate` to generate a new Drizzle schema with the relations.
or run our latest CLI version `npx @better-auth/cli@latest generate` to generate a new Drizzle schema with the relations.
Additionally, you're required to pass each [relation](https://orm.drizzle.team/docs/relations) through the drizzle adapter schema object.
</Callout>
+1 -1
View File
@@ -75,7 +75,7 @@ export const auth = betterAuth({
<Callout type="warn">
Please make sure that your Prisma schema has the necessary relations defined.
If you do not see any relations in your Prisma schema, you can manually add them using the `@relation` directive
or run our latest CLI version `npx auth@latest generate` to generate a new Prisma schema with the relations.
or run our latest CLI version `npx @better-auth/cli@latest generate` to generate a new Prisma schema with the relations.
</Callout>
## Additional Information
@@ -347,7 +347,7 @@ export const drizzleAdapter = (db: DB, config: DrizzleAdapterConfig) => {
for (const key in values) {
if (!schema[key]) {
throw new BetterAuthError(
`The field "${key}" does not exist in the "${model}" Drizzle schema. Please update your drizzle schema or re-generate using "npx @better-auth/cli generate".`,
`The field "${key}" does not exist in the "${model}" Drizzle schema. Please update your drizzle schema or re-generate using "npx @better-auth/cli@latest generate".`,
);
}
}
@@ -368,7 +368,7 @@ export const drizzleAdapter = (db: DB, config: DrizzleAdapterConfig) => {
if (options.experimental?.joins) {
if (!db.query || !db.query[model]) {
logger.error(
`[# Drizzle Adapter]: The model "${model}" was not found in the query object. Please update your Drizzle schema to include relations or re-generate using "npx auth generate".`,
`[# Drizzle Adapter]: The model "${model}" was not found in the query object. Please update your Drizzle schema to include relations or re-generate using "npx @better-auth/cli@latest generate".`,
);
logger.info("Falling back to regular query");
} else {
@@ -434,7 +434,7 @@ export const drizzleAdapter = (db: DB, config: DrizzleAdapterConfig) => {
if (options.experimental?.joins) {
if (!db.query[model]) {
logger.error(
`[# Drizzle Adapter]: The model "${model}" was not found in the query object. Please update your Drizzle schema to include relations or re-generate using "npx auth generate".`,
`[# Drizzle Adapter]: The model "${model}" was not found in the query object. Please update your Drizzle schema to include relations or re-generate using "npx @better-auth/cli@latest generate".`,
);
logger.info("Falling back to regular query");
} else {