Replace hand-rolled OAuth2 in packages/api/src/routes/auth.ts and session middleware with Better Auth. Better Auth is TS-native, self-hostable, and Drizzle-compatible. It manages users + sessions; app tables (sync_password_hash, storage_connections, api_keys) remain unchanged.
Replace hand-rolled OAuth2 in
packages/api/src/routes/auth.tsand session middleware with Better Auth. Better Auth is TS-native, self-hostable, and Drizzle-compatible. It managesusers+ sessions; app tables (sync_password_hash,storage_connections,api_keys) remain unchanged.