Files
xiaoxia-saas/packages/domain/auth/__init__.py
T
2026-06-21 06:52:19 +08:00

37 lines
914 B
Python

"""Authentication domain services.
Only pure domain authentication helpers are exported here. Infrastructure-backed
services such as Redis session storage and SMTP email delivery live under
`packages.adapters` and should be injected into use cases.
"""
from packages.domain.auth.email_service import EmailConfig, EmailService
from packages.domain.auth.jwt_service import (
JWTConfig,
JWTService,
TokenType,
jwt_service,
)
from packages.domain.auth.password_hasher import (
PasswordHasher,
PasswordValidator,
password_hasher,
password_validator,
)
from packages.domain.auth.session_store import RedisConfig, SessionStore
__all__ = [
"JWTService",
"JWTConfig",
"TokenType",
"jwt_service",
"PasswordHasher",
"PasswordValidator",
"password_hasher",
"password_validator",
"SessionStore",
"RedisConfig",
"EmailService",
"EmailConfig",
]