better-auth-protected-routes

Add server-side route protection to enforce authentication on specific pages while keeping others public.

9 stars

Best use case

better-auth-protected-routes is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Add server-side route protection to enforce authentication on specific pages while keeping others public.

Teams using better-auth-protected-routes should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/better-auth-protected-routes/SKILL.md --create-dirs "https://raw.githubusercontent.com/andrelandgraf/fullstackrecipes/main/.agents/skills/better-auth-protected-routes/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/better-auth-protected-routes/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How better-auth-protected-routes Compares

Feature / Agentbetter-auth-protected-routesStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Add server-side route protection to enforce authentication on specific pages while keeping others public.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Better Auth Protected Routes

To set up Better Auth Protected Routes, refer to the fullstackrecipes MCP server resource:

**Resource URI:** `recipe://fullstackrecipes.com/better-auth-protected-routes`

If the MCP server is not configured, fetch the recipe directly:

```bash
curl -H "Accept: text/plain" https://fullstackrecipes.com/api/recipes/better-auth-protected-routes
```

Related Skills

authentication

9
from andrelandgraf/fullstackrecipes

Complete authentication system with Better Auth, email verification, password reset, protected routes, and account management.

using-authentication

9
from andrelandgraf/fullstackrecipes

Use Better Auth for client and server-side authentication. Covers session access, protected routes, sign in/out, and fetching user data.

better-env

9
from andrelandgraf/fullstackrecipes

Better environment variable management for agents and humans with full type safety, CLI-based remote environment synchronization, and environment validation. Use when setting up typed config schemas, validating env variables, or managing remote env vars across Vercel, Netlify, Railway, Cloudflare, and Fly.io with better-env.

better-auth-setup

9
from andrelandgraf/fullstackrecipes

Add user authentication using Better Auth with Drizzle ORM and Neon Postgres. Base setup with email/password authentication.

better-auth-profile

9
from andrelandgraf/fullstackrecipes

Add a complete account settings page with profile editing, password changes, email updates, session management, and account deletion.

better-auth-emails

9
from andrelandgraf/fullstackrecipes

Add email verification, password reset, and account management emails to Better Auth using Resend.

better-auth-components

9
from andrelandgraf/fullstackrecipes

Add UI components and pages for authentication flows including sign in, sign up, forgot password, reset password, and email verification.

better-auth-best-practices

9
from andrelandgraf/fullstackrecipes

Skill for integrating Better Auth - the comprehensive TypeScript authentication framework.

url-state-management

9
from andrelandgraf/fullstackrecipes

Sync React state to URL query parameters for shareable filters, search, and deep-linkable dialogs with nuqs.

testing

9
from andrelandgraf/fullstackrecipes

Complete testing setup with Neon database branching, Playwright browser tests, integration tests, and unit tests. Isolated branches with automatic TTL cleanup.

stripe-subscriptions

9
from andrelandgraf/fullstackrecipes

Complete subscription billing system with Stripe integration, feature flags for plan gating, webhook handling, and billing portal.

ralph-loop

9
from andrelandgraf/fullstackrecipes

Complete setup for automated agent-driven development. Define features as user stories with testable acceptance criteria, then run AI agents in a loop until all stories pass.