Nexmo / nexmo-cli

Nexmo CLI (Command Line Interface)
https://nexmo.com
MIT License
78 stars 52 forks source link

Prevent error when using 'nexmo account' when not authenticated #94

Closed cbetta closed 7 years ago

cbetta commented 7 years ago

Closes #85.

Now throws a nice simple warning instead:

Not authenticated. Run "nexmo setup <api_key> <api_secret>" to log in.
cbetta commented 7 years ago

@leggetter ok to merge?

leggetter commented 7 years ago

Are we actually just checking to see if a config file exists and we're not really testing to see if the user is authenticated (the api key and secret are valid)?

cbetta commented 7 years ago

@leggetter yeah we are. nexmo account doesn't actually make any API call. Anything that does make an api call throws a authentication failed output when the credentials are wrong.

cbetta commented 7 years ago

@leggetter please hold off on merge

cbetta commented 7 years ago

Closing in favor of the simpler #96