mirror of
https://github.com/stack-auth/stack.git
synced 2026-07-20 21:29:36 +08:00
- StackAuthError base with code/message/details and from_response() factory - 13 category subclasses: Authentication, NotFound, Validation, PermissionDenied, Conflict, OAuth, Passkey, ApiKey, Payment, Email, RateLimit, Cli, Analytics - Complete _ERROR_CODE_MAP with 143 error codes from known-errors.tsx - StackAuthModel base class with Pydantic v2 ConfigDict and millis conversion - Package exports via __init__.py with __all__ |
||
|---|---|---|
| .. | ||
| src/stack_auth | ||
| tests | ||
| pyproject.toml | ||
| README.md | ||
Stack Auth Python SDK
Python SDK for Stack Auth - authentication, user management, and team management for your Python backend.
Installation
pip install stack-auth
Quick Start
from stack_auth import StackServerApp
app = StackServerApp(
project_id="your-project-id",
secret_server_key="your-secret-key",
)
# Verify a request's access token
user = await app.authenticate_request(request)
Requirements
- Python 3.10+