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.
This commit is contained in:
chaos committed 2026-07-12 15:54:24 +08:00
1 parent 8b3664a2d5
commit ee151343e0
455 files changed
+9051 -59

No files matched your search

+6
View File
@@ -6,6 +6,9 @@ from .schema import (
CLI_BASE_URL,
CLIENT_ID,
DEFAULT_BASE_URL,
DEFAULT_HEADERS,
GROK_TOKEN_UA,
GROK_VERSION,
REDIRECT_URI,
TOKEN_ENDPOINT,
build_cpa_xai_auth,
@@ -19,6 +22,9 @@ __all__ = [
"CLI_BASE_URL",
"CLIENT_ID",
"DEFAULT_BASE_URL",
"DEFAULT_HEADERS",
"GROK_TOKEN_UA",
"GROK_VERSION",
"REDIRECT_URI",
"TOKEN_ENDPOINT",
"CpaPushError",