Skip to content

Commit

Permalink
Fix always asking for existing token
Browse files Browse the repository at this point in the history
  • Loading branch information
yuqu committed Jan 17, 2020
1 parent b338b32 commit 5453de4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/login/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export async function login(): Promise<void> {
} else {
const authService = new AuthenticationService();

const existingToken = authService.authenticate();
const existingToken = await authService.authenticate();
if (existingToken) {
const answer = await inquirer.prompt([{
type: "input",
Expand Down

0 comments on commit 5453de4

Please sign in to comment.