Files
ZY-Agent/backend/packages/harness/deerflow/auth/__init__.py
T
1445043649 e5ff6e74f9 feat(auth): API key token generation/hashing utilities (Stage 1 PR1)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-28 11:01:03 +08:00

14 lines
521 B
Python

"""Auth primitives shared by the headless API (Stage 1).
Lives in the ``deerflow`` (harness) layer because both the persistence
hot path (``ApiKeyRepository.get_active_by_hash``) and the app-layer
mint endpoint need token generation/hashing, and the harness boundary
forbids ``deerflow`` importing ``app``.
"""
from __future__ import annotations
from deerflow.auth.tokens import GeneratedKey, generate_api_key, hash_api_key, split_prefix
__all__ = ["GeneratedKey", "generate_api_key", "hash_api_key", "split_prefix"]