feat(FN-4554): complete Step 6 — docs and changeset
Fusion-Task-Id: FN-4554 Fusion-Task-Lineage: 12d517c5-1954-4b27-8c63-c7f0dde93d3f
This commit is contained in:
@@ -803,17 +803,20 @@ export const registerAuthRoutes: ApiRouteRegistrar = (ctx) => {
|
||||
// Start login flow in background — don't await the full login
|
||||
const loginPromise = storage.login(provider, {
|
||||
onAuth: (info) => {
|
||||
const deviceCode =
|
||||
const parsedUserCode =
|
||||
provider === "github-copilot" && info.instructions
|
||||
? {
|
||||
userCode: parseGitHubCopilotDeviceCode(info.instructions),
|
||||
verificationUri: info.url,
|
||||
}
|
||||
? parseGitHubCopilotDeviceCode(info.instructions)
|
||||
: undefined;
|
||||
const deviceCode = parsedUserCode
|
||||
? {
|
||||
userCode: parsedUserCode,
|
||||
verificationUri: info.url,
|
||||
}
|
||||
: undefined;
|
||||
authResolve({
|
||||
url: info.url,
|
||||
instructions: appendManualCodeHint(info.instructions, provider, origin),
|
||||
deviceCode: deviceCode?.userCode ? deviceCode : undefined,
|
||||
deviceCode,
|
||||
});
|
||||
},
|
||||
onPrompt: async (_prompt) => {
|
||||
|
||||
Reference in New Issue
Block a user