Skip to content
Agentmart
Submit a tool

auth-patterns

Implements secure authentication patterns.

Skill by neuron-one

IndexedMIT★ 36
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/neuron-one-auth-patterns

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Implements secure authentication patterns. JWT with refresh tokens, OAuth 2.0, RBAC, session management. Use when building auth for any project. Don't use for social login setup.

Use cases: security

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/auth-patterns

Tools it pre-approves 5

From allowed-tools in SKILL.md: the agent may use these without asking you each time.

  • Read,
  • Write,
  • Edit,
  • Bash,
  • Grep

What's inside

Skill name
auth-patterns
Description
Implements secure authentication patterns. JWT with refresh tokens, OAuth 2.0, RBAC, session management. Use when building auth for any project. Don't use for social login setup.
License
MIT
Allowed tools
Read,, Write,, Edit,, Bash,, Grep
Instructions
34 lines in SKILL.md · view on GitHub

Before installing

  • Pre-approves some shell commands

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Secure Authentication Patterns

## JWT Implementation
- Access token: short-lived (15 min)
- Refresh token: long-lived (7 days), stored in httpOnly cookie
- Always validate: expiry, issuer, audience
- Never store JWT in localStorage (XSS vulnerable)
- Rotate refresh tokens on each use

## Password Security
- Hash with bcrypt (cost factor 12+)
- Minimum 8 characters, require complexity
- Rate limit login attempts (5 per minute)
- Account lockout after 10 failed attempts
- Never log passwords, even hashed

## RBAC (Role-Based Access Control)
- Define roles: admin, manager, user
- Middleware checks role on EVERY protected route
- Principle of least privilege
- Separate admin endpoints from user endpoints

## Session Management
- Regenerate session ID after login
- Expire inactive sessions (30 min)
- Allow user to see/revoke active sessions
- Invalidate all sessions on password change

## API Security
- CORS: whitelist specific origins, not *
- Rate limiting per user and per IP
- Input validation with schema (Zod, Joi)
- Sanitize all outputs

From neuron-one/GODMODE, MIT.

More from neuron-one/GODMODE

Signals

Stars
36
Forks
11
Open issues
0
Last commit (this folder)
Apr 1, 2026 (7 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from neuron-one

Cite this page

auth-patterns skill. Agent Mart. https://agentmart.dev/skills/neuron-one-auth-patterns (last updated 2026-10-24)