better-auth-python

Community

Secure FastAPI backends with BetterAuth JWT.

AuthorSyedaashnaghazanfar
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Developers building Python/FastAPI backends often struggle to securely verify tokens issued by a centralized Better Auth server. This skill provides a battle-tested pattern for validating JWTs via JWKS, protecting routes, and enforcing user context across services.

Core Features & Use Cases

  • JWKS-based JWT verification: fetches and caches public keys from the Better Auth server and validates tokens signed with RS256.
  • Protected routes integration: exposes a FastAPI dependency get_current_user that can protect APIs and enforce user identity.
  • ORM integration readiness: provides integration patterns for SQLModel and SQLAlchemy to scope data by the authenticated user.

Quick Start

Install the required packages and wire get_current_user in your FastAPI app. Then start your FastAPI server and call a protected route using a Better Auth JWT.

Dependency Matrix

Required Modules

None required

Components

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-python
Download link: https://github.com/Syedaashnaghazanfar/full-stack-todo-app/archive/main.zip#better-auth-python

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.