stack/sdks/implementations/python
Ejiro Asiuwhu ea427ed423 test: add failing tests for auth module
- Tests for decode_access_token_claims (valid JWT, defaults, malformed, missing sub, base64url)
- Tests for _extract_token_from_headers (Authorization, lowercase, x-stack-auth, missing)
- Tests for sync_authenticate_request and async_authenticate_request
2026-03-25 00:50:06 +01:00
..
src/stack_auth feat: add pagination support with cursor-based PaginatedResult 2026-03-24 22:25:13 +01:00
tests test: add failing tests for auth module 2026-03-25 00:50:06 +01:00
pyproject.toml test: add failing tests for python sdk error hierarchy and base model 2026-03-24 22:17:03 +01:00
README.md test: add failing tests for python sdk error hierarchy and base model 2026-03-24 22:17:03 +01:00

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+