Skip to content

refactor: deepen auth module setup - #335

Merged
onmax merged 5 commits into
mainfrom
refactor/auth-module-setup
May 1, 2026
Merged

refactor: deepen auth module setup#335
onmax merged 5 commits into
mainfrom
refactor/auth-module-setup

Conversation

@onmax

@onmax onmax commented May 1, 2026

Copy link
Copy Markdown
Collaborator

This deepens the auth module setup path by moving setup policy into a dedicated internal module and leaving src/module.ts as the orchestration layer. The new seam resolves auth config descriptors, mode flags, provider selection, runtime config decisions, and auth route rules in one pass, which gives later schema and type work a stable place to plug into.

The change also pulls the prepare-types and NuxtHub database externalization hooks into dedicated registration helpers, adds template builders for route rules and schema exports, and introduces direct setup-state tests for client-only mode, NuxtHub presence, provider selection, missing config handling, and route-rule extraction.

Checks run: pnpm exec vitest run test/module-setup.test.ts test/config-paths.test.ts test/runtime-config.test.ts test/database-provider.test.ts, pnpm exec vitest run test/module.test.ts test/no-hub.test.ts, pnpm exec eslint src/module.ts src/module/setup.ts src/module/hooks.ts src/module/templates.ts test/module-setup.test.ts, pnpm typecheck, and pnpm typecheck:runtime-server.

@vercel

vercel Bot commented May 1, 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 May 1, 2026 7:35am

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented May 1, 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 182dac5 May 01 2026, 07:36 AM

@pkg-pr-new

pkg-pr-new Bot commented May 1, 2026

Copy link
Copy Markdown

Open in StackBlitz

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

commit: 182dac5

@onmax
onmax merged commit e602334 into main May 1, 2026
5 of 6 checks passed
@onmax
onmax deleted the refactor/auth-module-setup branch May 1, 2026 07:57
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.

1 participant