Skip to content

fix(auth): migrate from next-auth to better-auth#1453

Merged
dancer merged 2 commits intodemofrom
fix/better-auth-migration
Mar 13, 2026
Merged

fix(auth): migrate from next-auth to better-auth#1453
dancer merged 2 commits intodemofrom
fix/better-auth-migration

Conversation

@dancer
Copy link
Collaborator

@dancer dancer commented Mar 13, 2026

summary

  • replace next-auth with better-auth and anonymous plugin for guest flow
  • users can chat without signing in, anonymous session created on first message
  • email/password login and register still work
  • conditional vercel oauth support when env vars are present
  • uuid id generation for postgres compatibility
  • skip unnecessary api calls (history, votes) when no session or readonly

@vercel
Copy link
Contributor

vercel bot commented Mar 13, 2026

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

Project Deployment Actions Updated (UTC)
ai-chatbot Ready Ready Preview, Comment Mar 13, 2026 11:18pm
chatbot Ready Ready Preview, Comment Mar 13, 2026 11:18pm
v0-ai-chatbot-1824 Ready Ready Preview, Comment, Open in v0 Mar 13, 2026 11:18pm
v0-ai-chatbot-6556 Ready Ready Preview, Comment, Open in v0 Mar 13, 2026 11:18pm
v0-v0-ai-chatbot Ready Ready Preview, Comment, Open in v0 Mar 13, 2026 11:18pm
v0-vercel-ai-chatbot Ready Ready Preview, Comment, Open in v0 Mar 13, 2026 11:18pm

Request Review

@socket-security
Copy link

socket-security bot commented Mar 13, 2026

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedbetter-auth@​1.5.5971008596100

View full report

@vercel vercel bot temporarily deployed to Preview – v0-ai-chatbot-1824 March 13, 2026 23:09 Inactive
@vercel-team
Copy link

vercel-team commented Mar 13, 2026

@vercel vercel bot temporarily deployed to Preview – v0-ai-chatbot-6556 March 13, 2026 23:10 Inactive
@vercel vercel bot temporarily deployed to Preview – v0-vercel-ai-chatbot March 13, 2026 23:10 Inactive
@vercel vercel bot temporarily deployed to Preview – v0-v0-ai-chatbot March 13, 2026 23:17 Inactive
@dancer dancer merged commit b4f595a into demo Mar 13, 2026
3 of 7 checks passed
@dancer dancer deleted the fix/better-auth-migration branch March 13, 2026 23:18
@vercel vercel bot temporarily deployed to Preview – v0-ai-chatbot-6556 March 13, 2026 23:18 Inactive
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