Right now if an Unauthorized error happens the plugin just prints the fact. If you run the command (e.g. apps) 5 times you get the same 5 times.
Due to the fact that if you get an unauthorized then that means the credentials are not valid and regardless of how many times you try it again you'll get the same results, my proposal is to:
Print the Unauthorized error when it happens
Clear out the token if set (most likely expired or it was revoked)
Print instructions about how to get/register a new one
Right now if an
Unauthorized
error happens the plugin just prints the fact. If you run the command (e.g.apps
) 5 times you get the same 5 times.Due to the fact that if you get an unauthorized then that means the credentials are not valid and regardless of how many times you try it again you'll get the same results, my proposal is to:
Unauthorized
error when it happens