Skip to content

src/dazzle_back/runtime/jwt_auth.py

Generated: 2026-03-30T04:38:47.483908+00:00

Commit: 615f1354a103

Language: python

Scope: dazzle_back

Purpose

JWT Authentication for mobile clients.

Provides JWT token creation, validation, and refresh for mobile app authentication.

Key Exports

  • JWTConfig
  • JWTClaims
  • TokenPair
  • TokenResponse
  • JWTService
  • JWTError
  • create_jwt_service
  • user_id
  • is_expired
  • create_access_token
  • verify_access_token
  • create_token_pair
  • decode_token_unverified

Dependencies

Imports

  • __future__.annotations
  • secrets
  • dataclasses.dataclass
  • dataclasses.field
  • datetime.UTC
  • datetime.datetime
  • datetime.timedelta
  • typing.TYPE_CHECKING
  • typing.Any
  • uuid.UUID
  • pydantic.BaseModel
  • pydantic.ConfigDict
  • pydantic.Field
  • dazzle_back.runtime.auth.UserRecord
  • jwt
  • jwt
  • jwt

Event Interactions

None detected.

Invariants and Assumptions

No invariants documented.

Tests

  • tests/unit/test_jwt_auth.py
  • tests/integration/test_runtime_e2e.py
  • tests/integration/test_runtime_pipeline.py
  • tests/unit/test_runtime_test_routes.py
  • tests/unit/test_runtime_services.py

Notes

This page was automatically generated by tools/gen_reference_docs.py.