fastapi-users-core
Installation
SKILL.md
FastAPI Users
Source: https://fastapi-users.github.io/fastapi-users/latest/ (configuration + usage sub-pages)
Purpose
FastAPI Users is a pluggable user-authentication library for FastAPI. It gives you ready-made routes for register, login, logout, forgot/reset password, email verification, and social OAuth2 — plus a current_user dependency callable to inject the authenticated user (with active/verified/superuser guards) into your own routes.
Status: maintenance mode — security updates only, no new features. A successor toolkit is in development.
When to Use
- You need a complete registration + auth system in a FastAPI project (not building from scratch).
- You want multiple authentication methods simultaneously (e.g. JWT for mobile API + cookies for browser sessions).
- You need built-in routes for login, logout, register, password reset, email verification.
- You need social OAuth2 login (Google, Facebook, etc.) with optional account linking.
- You want
current_userdependency injection withactive/verified/superuserguards.