Skip to content

Commit

Permalink
PCC-1585: Fixed spinner while logging in user (#312)
Browse files Browse the repository at this point in the history
  • Loading branch information
aumkar authored Sep 10, 2024
1 parent 68893a5 commit 59c4d67
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/cli/src/lib/addonApiHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,10 @@ class AddOnApiHelper {

// If auth details not found, try user logging in
if (!authDetails) {
const prevOra = ora().stopAndPersist();
// Clears older spinner if any
ora().clear();

await login(requiredScopes || []);
prevOra.start();
authDetails = await getLocalAuthDetails(requiredScopes);
if (!authDetails) throw new UserNotLoggedIn();
}
Expand Down

0 comments on commit 59c4d67

Please sign in to comment.