
Better Auth Protected Routes
- 149 installs
- 18 repo stars
- Updated June 8, 2026
- andrelandgraf/fullstackrecipes
Guard application routes and server actions with Better Auth session checks so only authenticated users access dashboards, settings, and paid features.
About
The better-auth-protected-routes skill documents how to secure pages and APIs with Better Auth in full-stack applications. It implements session-aware guards and middleware so authenticated-only areas remain protected consistently across server and client boundaries.
- Adds middleware or loader guards using Better Auth sessions
- Separates public marketing routes from authenticated app areas
- Prevents unauthorized access to sensitive server endpoints
- Follows fullstackrecipes patterns for Next.js apps
- Complements Better Auth UI components for full coverage
Better Auth Protected Routes by the numbers
- 149 all-time installs (skills.sh)
- Ranked #887 of 2,203 Security skills by installs in the Skillselion catalog
- Data as of Jul 28, 2026 (Skillselion catalog sync)
npx skills add https://github.com/andrelandgraf/fullstackrecipes --skill better-auth-protected-routesAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 149 |
|---|---|
| repo stars | ★ 18 |
| Last updated | June 8, 2026 |
| Repository | andrelandgraf/fullstackrecipes ↗ |
What it does
Guard application routes and server actions with Better Auth session checks so only authenticated users access dashboards, settings, and paid features.
Files
Better Auth Protected Routes
To set up Better Auth Protected Routes, fetch the recipe Markdown:
curl https://fullstackrecipes.com/recipes/better-auth-protected-routes.md