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

CLI should check if token has expired #105

@bacongobbler

Description

@bacongobbler

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions