Auth handler

From aiskillstore/marketplace · View interactive version

Auth handler is an AI agent skill from the GitHub repository aiskillstore/marketplace. Manage authentication, authorization, and user sessions. Use when dealing with login, sign-up, API protection, middleware, or user data fetching.

How to use this skill

Skill file

Auth Handler

Instructions

1. API Route Protection

```typescript

export default withAuthRequired(async (req, { session, getUser }) => { ... })

```

2. Frontend Data Access

3. Server-Side Data Access

Reference

For architecture details, key files, and debugging tips, see reference.md.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.