Skip to content

Commit

Permalink
fix: improve suggestion on auth failure
Browse files Browse the repository at this point in the history
  • Loading branch information
Shashwat Khanna authored and Shashwat Khanna committed Jun 12, 2023
1 parent 02ec6ef commit 5c90c8d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/commands/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,11 @@ access token, it takes care of refreshing it automatically.`
this.authError = {
code: 'EAUTHFAILURE',
message: `Failed to obtain access token: ${errorMessage}`,
suggestions: ['Verify your client credentials.',
suggestions: [
'Make sure you are using valid service credentials; default credentials will not work.',
'Verify your network connectivity.',
'Verify the values provided for the authentication and API servers in your configuration.'],
'Verify the values provided for the authentication and API servers in your configuration.',
],
}

CliUx.ux.action.stop(chalk.red('failed'))
Expand Down

0 comments on commit 5c90c8d

Please sign in to comment.