authentication-patterns
Authentication and authorization patterns including OAuth2, JWT, RBAC, session management, and PKCE flows
Content Preview
---
name: authentication-patterns
description: Authentication and authorization patterns including OAuth2, JWT, RBAC, session management, and PKCE flows
---
# Authentication Patterns
## JWT Access and Refresh Tokens
```typescript
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_SECREHow to Use
Recommended: Install to project (local)
mkdir -p .claude/skills
curl -o .claude/skills/authentication-patterns.md \
https://raw.githubusercontent.com/rohitg00/awesome-claude-code-toolkit/main/skills/authentication-patterns/SKILL.mdSkill is scoped to this project only. Add .claude/skills/ to your .gitignoreif you don't want to commit it.
Alternative: Clone full repo
git clone https://github.com/rohitg00/awesome-claude-code-toolkitThen reference at skills/authentication-patterns/SKILL.md
Related Skills
Validating Authentication Implementations
This skill enables Claude to validate authentication implementations against security best practices and industry standards. It analyzes various authentication methods, including JWT, OAuth, session-based authentication, and API keys. Use this skill when you need to perform an authentication securit
skill-adaptervalidating authentication implementations
by jeremylongshore · plugins-plus-skills
x-api
X/Twitter API integration for posting tweets, threads, reading timelines, search, and analytics. Covers OAuth auth patterns, rate limits, and platform-native content posting. Use when the user wants to interact with X programmatically.
x-apiapiauth
by affaan-m · everything-claude-code
auth-implementation-patterns
Build secure, scalable authentication and authorization systems using industry-standard patterns and modern best practices.
securityauth
by sickn33 (Antigravity) · antigravity-awesome-skills
broken-authentication
Identify and exploit authentication and session management vulnerabilities in web applications. Broken authentication consistently ranks in the OWASP Top 10 and can lead to account takeover, identity theft, and unauthorized access to sensitive systems.
securitybrokenauthentication
by sickn33 (Antigravity) · antigravity-awesome-skills