Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI should check if token has expired #105

Open
bacongobbler opened this issue Feb 16, 2022 · 0 comments
Open

CLI should check if token has expired #105

bacongobbler opened this issue Feb 16, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@bacongobbler
Copy link
Contributor

bacongobbler commented Feb 16, 2022

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:

  1. If the token in the local config cache has expired, prompt the user with their password to reissue a new token.
  2. 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant