Skip to main content
Back to Prompt Library
Security & QAAppSec Threat Model + CodeCoding & Engineering/audit

Zero-Trust JWT, Refresh Token Rotation & CSRF Security Audit

Audits authentication flows against token replay, algorithm confusion, XSS token theft, and implements family-based refresh token reuse detection.

Ready-to-Run Prompt Template

Mode: deep-think
Perform an AppSec deep-dive and provide a complete hardened TypeScript implementation for JWT Access + Refresh Token Rotation with automatic token-family revocation on replay detection, strict HttpOnly/SameSite cookie flags, and CSRF protection.
Recommended Model
Fusta Pro
Studio Mode
deep-think
Access
Free in Browser

Recommended Fusta Skills for This Prompt

AppSec & Threat Auditor

Performs OWASP Top 10 threat modeling, zero-trust auth review, SSRF/CSRF/injection detection, and hardened fixes.

Agentic Coding Engineer

Follows a Plan -> Implement -> Edge-Case Test workflow and produces complete runnable modules with zero stubs.

QA & Edge-Case Verifier

Audits code for race conditions, off-by-one errors, XSS/injection flaws, and runs an agentic post-generation review on complex code.

More Ready-to-Run Templates