🔐
DevOpsJavaScript

Authentication Patterns

by rohitg00

Authentication Patterns is a DevOps skill for Claude Code, published by rohitg00 in awesome-claude-code-toolkit.

2.5K stars898 forkson rohitg00/awesome-claude-code-toolkitAdded 2026/08/18+1% in starsRepository updated 2026/05/12
claudeclaude-codeclaudecodeclaudecode-hookspluginsskills
Install in seconds
Install Authentication Patterns
Copy Authentication Patterns into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/rohitg00/awesome-claude-code-toolkit/tree/main/skills/authentication-patterns ~/.claude/skills/authentication-patterns

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/rohitg00/awesome-claude-code-toolkit.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
skills/authentication-patterns/SKILL.md in rohitg00/awesome-claude-code-toolkit
Installs to
~/.claude/skills/authentication-patterns
Collection
One of 25 skills cataloged from this repository
Category
DevOps798 skills

What Authentication Patterns does

Authentication Patterns provides reusable patterns for JWT access/refresh tokens, OAuth2 PKCE, and RBAC authorization. Use it when building or reviewing authentication and authorization flows to avoid common security anti-patterns.

Authentication Patterns is cataloged under DevOps on DirSkills. Authentication Patterns comes from a repository tagged claude, claude-code, claudecode, claudecode-hooks and plugins.

Documentation

README

Authentication Patterns

JWT Access and Refresh Tokens

import jwt from "jsonwebtoken";

interface TokenPayload {
  sub: string;
  email: string;
  roles: string[];
}

function generateTokens(user: User) {
  const accessToken = jwt.sign(
    { sub: user.id, email: user.email, roles: user.roles },
    process.env.JWT_SECRET!,
    { expiresIn: "15m", issuer: "auth-service" }
  );

  const refreshToken = jwt.sign(
    { sub: user.id, tokenVersion: user.tokenVersion },
    process.env.REFRESH_SECRET!,
    { expiresIn: "7d", issuer: "auth-service" }
  );

  return { accessToken, refreshToken };
}

function verifyAccessToken(token: string): TokenPayload {
  return jwt.verify(token, process.env.JWT_SECRET!, {
    issuer: "auth-service",
  }) as TokenPayload;
}

This is the opening of the README. Read the full README on GitHub.

Frequently asked about Authentication Patterns

  • What else does rohitg00 publish alongside Authentication Patterns?

    Authentication Patterns is one of 25 skills that DirSkills catalogs from rohitg00/awesome-claude-code-toolkit, the repository it ships in. Its siblings there include API Design Patterns, AWS Cloud Patterns and Accessibility. Each one is a separate skill with its own page in this directory, installs the same way Authentication Patterns does, and is maintained by rohitg00 in that same repository. The rest of the collection is listed on the rohitg00/awesome-claude-code-toolkit page.

  • How does Authentication Patterns compare to other DevOps skills?

    Authentication Patterns ranks #244 by stars among the 798 DevOps skills in this catalog. The most-starred ones next to it are Backend Patterns, API Connector Builder and Migration. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Authentication Patterns against them. Open each page to compare what they document and how they install.

More from rohitg00/awesome-claude-code-toolkit

Authentication Patterns is one of 25 skills cataloged on DirSkills from rohitg00/awesome-claude-code-toolkit.

See all 25 skills
🌐
2w ago

API Design Patterns

API Design Patterns provides guidelines for designing REST APIs, including resource naming, HTTP methods, status codes, pagination, versioning, and OpenAPI spec generation. Use it when building or reviewing API endpoints to ensure consistency and best practices.
Quality
2.5K898
☁️
2w ago

AWS Cloud Patterns

AWS Cloud Patterns provides reusable patterns for building serverless applications with Lambda, DynamoDB, S3, and CDK/Terraform. Use it when designing infrastructure as code or implementing Lambda functions and DynamoDB single-table designs.
DevOps
2.5K898
2w ago

Accessibility

Accessibility provides web accessibility patterns for WCAG 2.2 compliance, including ARIA, keyboard navigation, screen readers, and testing.
Frontend
2.5K898
🧭
2w ago

AgentKit SEO

AgentKit SEO routes broad or ambiguous digital-presence work to the right specialized module while keeping context scoped. Use it when a request spans LinkedIn, GitHub, CV/ATS, portfolio, or X/Twitter surfaces, or when the correct platform skill is unclear.
SEO
2.5K898
🚀
2w ago

CI/CD Pipelines

CI/CD Pipelines provides reusable CI/CD pipeline configurations for GitHub Actions and GitLab CI, covering testing strategies and deployment automation. Use it when setting up or refining build, test, and deploy workflows.
DevOps
2.5K898
🧠
2w ago

Claude Memory Kit

Claude Memory Kit provides persistent memory across Claude Code sessions, using a two-layer architecture with a hot cache and knowledge wiki. Use it to maintain context, prevent loss during compression, and capture end-of-day summaries.
AI Engineering
2.5K898