Skip to content

fix: defer auth secret validation to runtime#303

Merged
onmax merged 2 commits intomainfrom
fix/runtime-secret-validation
Apr 15, 2026
Merged

fix: defer auth secret validation to runtime#303
onmax merged 2 commits intomainfrom
fix/runtime-secret-validation

Conversation

@onmax
Copy link
Copy Markdown
Collaborator

@onmax onmax commented Apr 15, 2026

Summary

  • stop throwing for a missing or short auth secret during module setup
  • validate the resolved secret when serverAuth() initializes at runtime instead
  • update tests and production deployment docs to match the runtime-only enforcement

Closes #302

Testing

  • pnpm test test/runtime-config.test.ts test/server-auth-runtime-validation.test.ts
  • pnpm test test/server-auth-base-url-cache.test.ts

@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Apr 15, 2026

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 Apr 15, 2026 2:10pm

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Apr 15, 2026

Open in StackBlitz

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

commit: 09362c9

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Apr 15, 2026

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 09362c9 Apr 15 2026, 02:11 PM

@onmax onmax merged commit 55f58a0 into main Apr 15, 2026
5 of 6 checks passed
@onmax onmax deleted the fix/runtime-secret-validation branch April 15, 2026 14:16
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.

Do not require NUXT_BETTER_AUTH_SECRET at build time

1 participant