Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant