Skip to content
Back to skills

Jwt Verify

ASecurity

Implement JWT verification middleware in FastAPI for user auth. Use when securing APIs or handling tokens.

  • 666 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added February 9, 2026
securitygofastapiapisecurity

Works with

  • api

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add majiayu000/claude-skill-registry --skill jwt-verify --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Jwt Verify?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Jwt Verify
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-jwt-verify/badge)](https://www.skillsdirectory.com/skills/majiayu000-jwt-verify)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: jwt-verify
description: Implement JWT verification middleware in FastAPI for user auth. Use when securing APIs or handling tokens.
---
# JWTVerify Instructions
Input: Request with Authorization header, shared secret.
Output: Verified user claims or 401 error.
Steps:
1. Install dependencies if needed (jose, fastapi-security).
2. Generate middleware code.
Example Code:
from fastapi import Depends, HTTPException
from jose import JWTError, jwt
from fastapi.security import HTTPBearer
security = HTTPBearer()
async def verify_jwt(token: str = Depends(security)):
    try:
        payload = jwt.decode(token.credentials, SECRET_KEY, algorithms=["HS256"])
        return payload
    except JWTError:
        raise HTTPException(401, "Invalid token")

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.