Skip to content

Ability to check if an API token is valid #195

@rec-averbis

Description

@rec-averbis

Is your feature request related to a problem? Please describe.
There is currently no well-defined way to check if a given API token is valid. For example, if I have a saved token that is valid, I don't want to generate a new one. However, if a token I have is not valid, I might want to generate a new one via credentials.

Describe the solution you'd like
The Python API should offer some function like Client.is_token_valid(...) which returns whether the token is valid or not. This should work whether or not a license has already been installed.

Describe alternatives you've considered
Try calling some unspecific function (i.e. one that is not explicitly designed to check token validity) and if that fails, generate a new one. Problem might be figuring out whether the call failed due to the token or a missing license.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions