@elizaos/ui 2.0.0-alpha.416 → 2.0.0-alpha.417
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -466,20 +466,16 @@ async function handleOAuthRoutes(ctx, providerId, rest) {
|
|
|
466
466
|
writeLinkedAccount(ctx.state.config, linkedConfig);
|
|
467
467
|
ctx.saveConfig(ctx.state.config);
|
|
468
468
|
};
|
|
469
|
+
const startFlow = subscription === "anthropic-subscription"
|
|
470
|
+
? startAnthropicOAuthFlow
|
|
471
|
+
: startCodexOAuthFlow;
|
|
469
472
|
let handle;
|
|
470
473
|
try {
|
|
471
|
-
handle =
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
onAccountSaved,
|
|
477
|
-
})
|
|
478
|
-
: await startCodexOAuthFlow({
|
|
479
|
-
label: parsed.data.label,
|
|
480
|
-
accountId,
|
|
481
|
-
onAccountSaved,
|
|
482
|
-
});
|
|
474
|
+
handle = await startFlow({
|
|
475
|
+
label: parsed.data.label,
|
|
476
|
+
accountId,
|
|
477
|
+
onAccountSaved,
|
|
478
|
+
});
|
|
483
479
|
}
|
|
484
480
|
catch (err) {
|
|
485
481
|
logger.error(`[accounts] Failed to start ${providerId} OAuth flow: ${String(err)}`);
|