Menu

πŸ“°
0

Reddit - Please wait for verification

Full-stack DevelopmentΒ·/u/WetThrust258Β·3 days ago
#zmoCZ5AJ
Reading 0:00
15s threshold

Problem Statement The original goal was to build a reusable authentication architecture for a multi-platform monorepo containing: web frontend, admin frontend, mobile app (Expo/React Native), and future frontends like TV or desktop apps. The initial approach attempted to centralize authentication through a shared auth-client package built around Better Auth clients, ports, adapters, and reusable hooks. Example structure: packages/auth-client/ β”œβ”€β”€ port/ β”œβ”€β”€ adapter/ β”œβ”€β”€ client/ The idea was: one shared auth abstraction, reusable hooks, reusable auth logic, platform-independent frontend architecture. However, the architecture began breaking down due to fundamental platform divergence. Core Problems 1. Better Auth Client Divergence Each frontend requires different Better Auth plugins and therefore exposes different client capabilities and TypeScript types.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More