@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elizaos/ui",
3
- "version": "2.0.0-alpha.416",
3
+ "version": "2.0.0-alpha.417",
4
4
  "description": "Shared UI primitives, composites, and layout utilities for elizaOS apps.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -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
- subscription === "anthropic-subscription"
473
- ? await startAnthropicOAuthFlow({
474
- label: parsed.data.label,
475
- accountId,
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)}`);