stack/sdks/implementations/python
Ejiro Asiuwhu 7ec2e27a8e fix: add debug logging to authenticate_request exception handlers
- Add logger = logging.getLogger("stack_auth") at module level
- Emit logger.debug("authenticate_request failed", exc_info=True) in both sync and async handlers
- Add tests verifying debug log emission on verification failure
2026-03-25 08:02:10 +01:00
..
src/stack_auth fix: add debug logging to authenticate_request exception handlers 2026-03-25 08:02:10 +01:00
tests fix: add debug logging to authenticate_request exception handlers 2026-03-25 08:02:10 +01:00
pyproject.toml docs: add module docstring with quick-start example and complete PyPI metadata 2026-03-25 02:05:44 +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+