better-auth-jwt
CommunitySecure end-to-end JWT auth for Next.js & FastAPI.
Software Engineering#authorization#authentication#Next.js#FastAPI#JWT#Better Auth#token verification
AuthorItsKumailHere
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill provides end-to-end guidance for implementing JWT-based authentication across a Next.js 16 App Router frontend and a FastAPI backend, eliminating guesswork in wiring frontend tokens to backend verification.
Core Features & Use Cases
- Frontend: seamless login/logout flows using a shared secret and JWT tokens, plus secure session storage.
- Backend: JWT verification via a FastAPI dependency, user lookup by the token's subject, and per-user data isolation.
- Use Case: building a secure, scalable app with a modern Next.js frontend and FastAPI services that protects routes and API endpoints.
Quick Start
Create your auth config using the provided secret, wire up the Next.js route handlers with toNextJsHandler, protect backend routes with a get_current_user dependency, and begin authenticating users with signIn/signOut flows while passing Bearer tokens in API requests.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 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: better-auth-jwt Download link: https://github.com/ItsKumailHere/taskdotdo/archive/main.zip#better-auth-jwt 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.