hippo-cli
hippo-cli copied to clipboard
CLI should check if token has expired
I've noticed when attempting to run commands the following day, I see errors like the following:
><> hippo app add helloworld helloworld
Error:
Under the hood, the client received a 401 Unauthorized response from the API server.
The CLI should do two things:
- If the token in the local config cache has expired, prompt the user with their password to reissue a new token.
- If the token has NOT expired AND the client receives a 401 Unauthorized response, prompt the user to log back in with authorized credentials (e.g. log in as an administrator)