feat(FN-4554): complete Step 3 — add deviceCode API type
Fusion-Task-Id: FN-4554 Fusion-Task-Lineage: 12d517c5-1954-4b27-8c63-c7f0dde93d3f
This commit is contained in:
@@ -1364,6 +1364,11 @@ export interface ManualOAuthCodeInfo {
|
||||
helpText?: string;
|
||||
}
|
||||
|
||||
export interface OAuthDeviceCodeInfo {
|
||||
userCode: string;
|
||||
verificationUri: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Snapshot of the Claude-CLI-via-pi health state. Powers the
|
||||
* "Anthropic — via Claude CLI" provider card.
|
||||
@@ -1927,11 +1932,13 @@ export function loginProvider(provider: string): Promise<{
|
||||
url: string;
|
||||
instructions?: string;
|
||||
manualCode?: ManualOAuthCodeInfo;
|
||||
deviceCode?: OAuthDeviceCodeInfo;
|
||||
}> {
|
||||
return api<{
|
||||
url: string;
|
||||
instructions?: string;
|
||||
manualCode?: ManualOAuthCodeInfo;
|
||||
deviceCode?: OAuthDeviceCodeInfo;
|
||||
}>("/auth/login", {
|
||||
method: "POST",
|
||||
body: JSON.stringify({ provider, origin: window.location.origin }),
|
||||
|
||||
Reference in New Issue
Block a user