Files
grok-keygen-new/cpa/__init__.py
T
chaos ee151343e0 Prefer SSO OAuth PKCE for CPA minting and sync latest accounts.
Switch CPA export to SSO→Authorization Code with referrer=grok-build, keep device-code as optional fallback, and capture new register/auth artifacts.
2026-07-12 15:54:24 +08:00

37 lines
787 B
Python

"""CPA (CLIProxyAPI) xai auth 组装 / 写盘 / 推送远端。"""
from .client import CpaPushError, push_auth_file
from .schema import (
API_BASE_URL,
CLI_BASE_URL,
CLIENT_ID,
DEFAULT_BASE_URL,
DEFAULT_HEADERS,
GROK_TOKEN_UA,
GROK_VERSION,
REDIRECT_URI,
TOKEN_ENDPOINT,
build_cpa_xai_auth,
credential_file_name,
expired_from_access_token,
)
from .writer import write_cpa_xai_auth
__all__ = [
"API_BASE_URL",
"CLI_BASE_URL",
"CLIENT_ID",
"DEFAULT_BASE_URL",
"DEFAULT_HEADERS",
"GROK_TOKEN_UA",
"GROK_VERSION",
"REDIRECT_URI",
"TOKEN_ENDPOINT",
"CpaPushError",
"build_cpa_xai_auth",
"credential_file_name",
"expired_from_access_token",
"push_auth_file",
"write_cpa_xai_auth",
]