better-auth-python

Community

Secure Python backends with Better Auth JWT.

AuthorHamza123545
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Integrates Better Auth JWT verification with Python FastAPI backends to securely validate tokens from a centralized TypeScript auth server, enabling protected routes and a consistent user context.

Core Features & Use Cases

  • JWKS-based JWT verification to fetch public keys and verify tokens
  • Protected routes integration via FastAPI dependencies (get_current_user)
  • Templates and guidance for SQLModel/SQLAlchemy integrations with FastAPI

Quick Start

  1. Install dependencies: pip install fastapi uvicorn pyjwt cryptography httpx
  2. Set the BETTER_AUTH_URL environment variable to the address of your Better Auth server
  3. Protect endpoints by injecting get_current_user into your route handlers

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/Hamza123545/Todo_giaic_five_phases/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 223,000+ vetted skills library on demand.