Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
andrelandgraf avatar

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-routes

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs149
repo stars18
Last updatedJune 8, 2026
Repositoryandrelandgraf/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

SKILL.mdMarkdownGitHub ↗

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

Related skills

Securitybackendintegrations

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.