Skip to content

Overview

AuthFort is a complete authentication and authorization system for Python applications. It handles user signup, login, JWT tokens, OAuth providers, roles, sessions, and more — so you don’t have to build auth from scratch.

AuthFort consists of three packages that work together:

The full auth server. Handles user management, password hashing, JWT issuance, OAuth flows, roles, sessions, rate limiting, and event hooks. This is what you install if you’re building an application that needs authentication.

pip install authfort
pip install authfort

A lightweight JWT verifier for microservices. It fetches public keys from your auth server’s JWKS endpoint and validates tokens locally — no database access needed. Install this on services that need to verify users but don’t manage authentication themselves.

pip install authfort-service
pip install authfort-service

A TypeScript SDK for browsers and mobile apps. Handles token lifecycle (refresh, retry on 401), auth state management, and OAuth redirects. Includes integrations for React, Vue, and Svelte.

npm install authfort-client
npm install authfort-client
ScenarioPackages
Single app (e.g., FastAPI + React)authfort + authfort-client
Microservices (auth server + downstream services)authfort + authfort-service + authfort-client
Just verify JWTs in a serviceauthfort-service only
Frontend authfort-client TypeScript Auth Server authfort Python DB Microservices authfort-service Python Login, Signup Refresh JWT + Refresh Fetch JWKS Public Keys Authenticated requests (JWT in header/cookie)

The auth server issues JWTs and exposes a JWKS endpoint. Microservices fetch the public keys from JWKS to verify tokens locally. The client SDK handles token refresh and authenticated requests from the browser.