Files
grok-keygen-new/oidc_mint/__init__.py
T
chaos 33f966ccea Initial commit: grok-register with private config and auth artifacts.
Include local config, CPA auth files, account dumps, and temp-mail deploy helpers for the private Gitea repo.
2026-07-12 08:10:44 +08:00

24 lines
723 B
Python
Raw 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.
"""OIDC 设备码铸造包:为免费 Grok Build 账号铸造 access/refresh/id token。
仅保留铸造所需的三块:
- oauth_device:xAI 设备码授权 + 轮询 token
- browser_confirm:独立 Chromium 完成设备码确认
- proxyutil:代理解析
输出成什么格式(CPA / 其它)由上层的 cpa_export 负责,这里不掺和。
"""
from .browser_confirm import mint_with_browser, shutdown_mint_browsers
from .oauth_device import CLIENT_ID, SCOPE, OAuthDeviceError
from .proxyutil import resolve_proxy, set_runtime_proxy
__all__ = [
"mint_with_browser",
"shutdown_mint_browsers",
"CLIENT_ID",
"SCOPE",
"OAuthDeviceError",
"resolve_proxy",
"set_runtime_proxy",
]