jwt-auth
CommunitySecure JWTs in FastAPI with ease.
System Documentation
What problem does it solve?
This Skill provides reusable JWT authentication utilities for FastAPI and Python projects, reducing boilerplate for token generation, verification, and user extraction.
Core Features & Use Cases
- Generate and verify JWT tokens with standard claims (sub, exp, roles) for FastAPI apps.
- Extract authenticated user details via dependencies; support role-based access checks.
- Integrate with existing frontend authentication flows and backend security practices.
Quick Start
Install or import the jwt-auth components into your FastAPI project. Create a token with create_access_token(data={"sub": "user@example.com", "roles": ["admin"]}). Protect endpoints with a dependency that retrieves the current user from the token. For example, define a dependency using get_current_user and apply it to your routes to enforce authentication and RBAC.
Dependency Matrix
Required Modules
None requiredComponents
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: jwt-auth Download link: https://github.com/Awais68/h2_phase_3_Chatbot_Todo/archive/main.zip#jwt-auth Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.