Skip to content

fix: support plural auth schema exports#378

Merged
onmax merged 1 commit into
mainfrom
fix/issue-375-devtools-plural-tables
Jun 30, 2026
Merged

fix: support plural auth schema exports#378
onmax merged 1 commit into
mainfrom
fix/issue-375-devtools-plural-tables

Conversation

@onmax

@onmax onmax commented Jun 30, 2026

Copy link
Copy Markdown
Collaborator

Adds stable singular aliases on the generated #auth/schema module so module-managed auth schemas still expose schema.user, schema.session, and schema.account when Better Auth generates plural Drizzle exports such as users, sessions, and accounts.

This fixes the DevTools auth endpoints, which already read the stable singular schema keys, without adding endpoint-specific plural lookup branches. The schema export regression fixture now runs with schema.usePlural: true and checks both the generated plural table and stable singular alias.

Closes #375

@vercel

vercel Bot commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
nuxt-better-auth-docs Ready Ready Preview, Comment Jun 30, 2026 8:11am

@pkg-pr-new

pkg-pr-new Bot commented Jun 30, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@onmax/nuxt-better-auth@378

commit: 8dd0f43

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 30, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
❌ Deployment failed
View logs
better-auth 8dd0f43 Jun 30 2026, 08:11 AM

@onmax onmax marked this pull request as ready for review June 30, 2026 08:06
@onmax onmax force-pushed the fix/issue-375-devtools-plural-tables branch from 621fd0e to 8dd0f43 Compare June 30, 2026 08:08
@onmax onmax merged commit 73fd300 into main Jun 30, 2026
5 of 6 checks passed
@onmax onmax deleted the fix/issue-375-devtools-plural-tables branch June 30, 2026 08:14
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.

devtools: plural tables not found

1 participant