Skip to content

feat(playground): use Convex as auth database#15

Merged
onmax merged 2 commits intomainfrom
fix/playground-convex-auth
Jan 22, 2026
Merged

feat(playground): use Convex as auth database#15
onmax merged 2 commits intomainfrom
fix/playground-convex-auth

Conversation

@onmax
Copy link
Owner

@onmax onmax commented Jan 21, 2026

Summary

  • Switch from local server auth to @convex-dev/better-auth
  • Auth runs inside Convex via HTTP actions
  • nuxt-better-auth uses clientOnly mode

Changes

  • Add @convex-dev/better-auth dependency
  • Create Convex auth files (auth.ts, auth.config.ts, http.ts, convex.config.ts)
  • Update app/auth.config.ts to point to Convex HTTP endpoints
  • Remove server/auth.config.ts (not needed in clientOnly mode)
  • Enable auth.clientOnly: true in nuxt.config

Test plan

  • Run pnpm install
  • Configure CONVEX_URL, VITE_CONVEX_SITE_URL, SITE_URL env vars
  • Run npx convex dev to deploy Convex functions
  • Run pnpm dev in playground
  • Test auth flow (GitHub login)

Switch from local server auth to @convex-dev/better-auth.
Auth runs inside Convex via HTTP actions, nuxt-better-auth
uses clientOnly mode.
@vercel
Copy link

vercel bot commented Jan 21, 2026

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

Project Deployment Review Updated (UTC)
docs Ready Ready Preview, Comment Jan 21, 2026 11:47am

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jan 21, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

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

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
nuxt-convex-playground 633b9d8 Commit Preview URL

Branch Preview URL
Jan 21 2026, 11:46 AM

@pkg-pr-new
Copy link

pkg-pr-new bot commented Jan 21, 2026

npm i https://pkg.pr.new/onmax/nuxt-convex@15

commit: 633b9d8

@onmax onmax merged commit db7e7a4 into main Jan 22, 2026
8 checks passed
@onmax onmax deleted the fix/playground-convex-auth branch January 22, 2026 19:34
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