Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By psengerv1.0.0MITIn 1 marketplace
Audit a codebase's JWT, refresh token, session cookie, risk-based authentication, and OIDC implementation against RFC 8725, RFC 9700, OWASP cheat sheets, and NIST SP 800-63B-4. Produces a tiered scorecard with evidence-backed findings and concrete fixes.
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
jwt, oidc, oauth, audit, refresh-token, session, authentication
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
A opinionated practical guide built on professional experience to building session authentication correctly, with worked examples in Node.js, React, and axios.
Author: Philip Senger
The patterns and code in this guide are drawn from deployed production grade Node.js and React authentication systems designed and written by the author many times. Identifiers have been genericized so the material is portable to any project.
You already know JavaScript. You've probably watched a few YouTube videos on JWTs, maybe even pasted one into jwt.io to see what's inside. But there's a real gap between an auth system that works and one that would hold up under an OWASP audit or bank-grade scrutiny. This document is for you if you've never built an auth system from scratch, or if you have and you're not fully confident it's right. Let's walk through the concepts that make the difference.
By the end, you'll understand what each piece does, why it exists, and what breaks if you get it wrong. This document builds step by step, each section depends on the one before it, so it's worth reading in order rather than jumping around. Every code sample here is safe to copy into production.
HTTP is stateless. Every request arrives with no memory of the last one. If a user logs in on request #1, request #2 has no idea who they are. Something has to carry identity forward.
The classic answer is a session table:
session_id → user_id.session_id in a cookie.This works and it is not wrong. It has one real cost: every request needs a database lookup, and every server needs to reach the same session store. Scale to twenty API instances and that store becomes a bottleneck and a single point of failure.
A token is a self-describing credential. Instead of a meaningless id that points at a row, the token itself says "this is user 42, issued at 10:00, expires at 10:05", and it carries a cryptographic signature proving the server wrote it.
The server can verify a token with nothing but a secret key. No database. No shared store. Any instance can verify any token.
You cannot un-issue a token.
A session row can be deleted; the next request fails instantly. A signed token is valid until it expires, because verification is pure math over the token's own bytes. There is no "check if still valid" step unless you add one, and adding one puts the database lookup right back.
This single tradeoff drives every design decision in this document. Everything that follows is a way of managing the consequences of tokens you cannot revoke.
The standard answer, which the rest of this guide builds out:
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub psenger/jwt-token-refresh-rba-oidc-best-practice --plugin jwt-auth-auditorPlugins from other owners that cover similar ground