Skip to content

feat(auth): núcleo do Better Auth, no escuro (ADR-033, PR 1/4) - #38

Merged
vinicius3w merged 1 commit into
developfrom
feature/auth-core
Oct 9, 2026
Merged

vinicius3w merged 1 commit into
developfrom
feature/auth-core

Conversation

@vinicius3w

Copy link
Copy Markdown
Contributor

Schema auth_, servidor Better Auth, resolvedor de contexto e script de migração. Login segue no Clerk. Migração 0005 aditiva (ADR-031): aplicar em production ANTES do merge. Dev DB: resetar a partir do parent antes de aplicar (contém ba_ do spike).

Adds the Better Auth server (email OTP, organizations, Google/GitHub, database rate limit,
provider-token stripping), the auth_* tables, additive columns on users/workspaces
(auth_id, auth_org_id, nullable clerk ids + identity checks), a session->workspace context
resolver and an idempotent Clerk->Better Auth data migration script.
Nothing in the app uses it yet: login is still Clerk. Migration 0005 is additive (ADR-031).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VDxbrneS3TEAUmdgVmkKpQ
@vercel

vercel Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
compasso Ready Ready Preview Oct 9, 2026 12:15pm UTC

@vinicius3w
vinicius3w merged commit 140dc2e into develop Oct 9, 2026
3 checks passed
@vinicius3w
vinicius3w deleted the feature/auth-core branch October 9, 2026 18:28

This branch was successfully deployed

1 active deployment
Preview — 9a297ee7 Deployed Oct 9, 2026 by vercel[bot]
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