This ticket was generated by AI (to-tickets) from #43.
Parent
#43
What to build
Collapse the two divergent betterAuth() configurations into a single source of truth living in the shared auth package, and restructure that package into clear export paths so server-only runtime dependencies never leak into browser or lightweight consumers. This is the "expand" prefactor: it adds the new structure without any service consuming the new middleware yet.
Acceptance criteria
Blocked by
Parent
#43
What to build
Collapse the two divergent
betterAuth()configurations into a single source of truth living in the shared auth package, and restructure that package into clear export paths so server-only runtime dependencies never leak into browser or lightweight consumers. This is the "expand" prefactor: it adds the new structure without any service consuming the new middleware yet.Acceptance criteria
betterAuth()instance, exposed via@reloop/auth/server@reloop/auth/client(browser) and@reloop/auth/types(type-only) export paths existbetterAuth()instance is deleted; client types derive from the single source@reloop/auth/serverBlocked by