Files
2026-09-10 16:30:53 +08:00

30 lines
770 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"""chongming-auth —— auth 域共享契约包。
网关内置登录与 auth 插件(用户管理)的公共依赖:
Users 模型(唯一权威定义)、建库与 admin 种子、登录校验、JWT 签发。
两侧不得互相 import(worker SDK / 插件保持与网关解耦),共享物只放这里。
"""
from .models import Users
from .store import (
DEFAULT_TOKEN_EXPIRES_SECONDS,
issue_token,
open_database,
seed_admin,
touch_last_login,
verify_login,
)
from .pydantic import LoginPostRequest, LoginPostResponse
__all__ = [
"Users",
"DEFAULT_TOKEN_EXPIRES_SECONDS",
"issue_token",
"open_database",
"seed_admin",
"touch_last_login",
"verify_login",
"LoginPostRequest",
"LoginPostResponse",
]