What problem does it solve? Building secure API authentication is error-prone: weak token handling, missing header validation, and poor secret management lead to common vulnerabilities. This Skill provides production-oriented patterns for JWT, OAuth 2.0, and API key authentication so you avoid those mistakes. ## Core Features & Use Cases - JWT Authentication: Access and refresh token generation with middleware validation in Node.js (jsonwebtoken) and Flask (flask-jwt-extended), including role-based access control decorators. - OAuth 2.0 Integration: Google sign-in flow using Authlib with OpenID Connect discovery, user provisioning, and JWT issuance. - API Key Authentication: Secure key generation with secrets, SHA-256 hashing for storage, and usage tracking. - Security Hardening: Guidance on HTTPS, HttpOnly cookies, bcrypt password hashing, rate limiting, and security headers (HSTS, X-Frame-Options). - Use Case: You are adding login to a Flask API. Use this Skill to implement the /login and /refresh endpoints with role-based route protection, then add Google OAuth as a second sign-in method. ## Quick Start Ask the AI to implement JWT authentication with refresh tokens and role-based access control for your Flask or Express API.