Skip to content

doc fix: better-auth need drizzle schema#736

Merged
yusukebe merged 1 commit into
honojs:mainfrom
liuqiaowei512:patch-1
Sep 7, 2025
Merged

doc fix: better-auth need drizzle schema#736
yusukebe merged 1 commit into
honojs:mainfrom
liuqiaowei512:patch-1

Conversation

@liuqiaowei512

Copy link
Copy Markdown
Contributor

Added schema import to ensure better-auth recognizes the schema.

Otherwise you'll run into exception like below:

[BetterAuthError: [# Drizzle Adapter]: The model "user" was not found in the schema object. Please pass the schema directly to the adapter options.]

Added schema import to ensure better-auth recognizes the schema.

@yusukebe yusukebe left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@yusukebe

yusukebe commented Sep 7, 2025

Copy link
Copy Markdown
Member

@liuqiaowei512 Thanks!

@yusukebe
yusukebe merged commit 6b0692b into honojs:main Sep 7, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants