Nextjs authentication

From HoangNguyen0403/agent-skills-standard · View interactive version

Nextjs authentication is an AI agent skill from the GitHub repository HoangNguyen0403/agent-skills-standard. Secure token storage (HttpOnly Cookies) and Middleware patterns. Use when implementing authentication, secure session storage, or auth middleware in Next.js.

How to use this skill

Skill file

Authentication & Token Management

**Priority: P0 (CRITICAL)**

Use HttpOnly Cookies for token storage. Never use LocalStorage or sessionStorage.

Implementation Guidelines

Example: Auth Middleware

See implementation examples

Example: HttpOnly Cookie Setup

See implementation examples

Anti-Patterns

References

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.