Skip to content

Commit

Permalink
track org token in run (#2326)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandre-Herve authored Sep 20, 2023
1 parent 031ab76 commit 9d9f613
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions projects/optic/src/commands/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 9d9f613

Please sign in to comment.