auth-handler

Community

Secure auth and user sessions, with safe access.

Authoralisonbessa
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Authentication, authorization, and session management are essential for secure, scalable apps. This skill provides guidance on protecting API routes, guarding frontend data, and managing user sessions across server and client boundaries.

Core Features & Use Cases

  • Route protection: wrappers like withAuthRequired and withSuperAdminAuthRequired to secure standard and admin endpoints.
  • Cron and defense in depth: cronAuthRequired for scheduled tasks alongside middleware.
  • Data access patterns: server-side checks via an import from the auth module and frontend hooks like useUser() for safe user data access.

Quick Start

Wrap API routes with withAuthRequired to enforce authentication and protect resources.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: auth-handler
Download link: https://github.com/alisonbessa/bluemoon/archive/main.zip#auth-handler

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.