"""
mizan.client.jwt - JWT authentication for server functions.

Provides:
- Server functions for obtaining/refreshing JWT tokens
- JWT authentication utilities for validating tokens

Server Functions:
- jwt_obtain: Convert authenticated session to JWT tokens
- jwt_refresh: Refresh tokens using a refresh token

Note: This module is purpose-built for mizan server functions.
For Django Ninja API authentication, use mizan.jwt.security directly.
"""

# Token utilities (re-exports from django_jwt_session)
from mizan.jwt.tokens import (
    create_token_pair,
    create_access_token,
    create_refresh_token,
    decode_token,
    refresh_tokens,
    TokenPair,
    TokenPayload,
    JWTUser,
)

# Settings
from mizan.jwt.settings import get_settings, JWTSettings

__all__ = [
    # Token utilities
    "create_token_pair",
    "create_access_token",
    "create_refresh_token",
    "decode_token",
    "refresh_tokens",
    "TokenPair",
    "TokenPayload",
    "JWTUser",
    # Settings
    "get_settings",
    "JWTSettings",
]
