Better Auth, Start and protected routes
Hey
I'm setting up authentication with Better Auth and TanStack Start. I’ve got it working, but the solution feels messy, lots of duplicated code.
Does anyone have a clean example or template to share? Ideally with good practices like global middleware for protected routes and user object available via context, etc.
Does anyone have a clean example or template to share? Ideally with good practices like global middleware for protected routes and user object available via context, etc.