diff --git a/projects/optic/src/commands/run.ts b/projects/optic/src/commands/run.ts index ae576e003d..fd8973c967 100644 --- a/projects/optic/src/commands/run.ts +++ b/projects/optic/src/commands/run.ts @@ -198,13 +198,10 @@ async function authenticateInteractive(config: OpticCliConfig) { config.isAuthenticated = true; config.userId = token.startsWith('opat') ? token.slice(4).split('.')[0] - : undefined; + : token; - if (config.userId) { - alias(config.userId); - trackEvent('cli.login'); - await flushEvents(); - } + trackEvent('cli.login'); + await flushEvents(); return true; }