byxorna / nycmesh-tool

nycmesh-tool CLI
Apache License 2.0
1 stars 0 forks source link

UISP `x-auth-token` expires periodically #12

Open byxorna opened 2 years ago

byxorna commented 2 years ago

When using uisp.x-auth-token in the config, the client does not handle token expiry. Periodically, the token expires (48h?) and the user needs to be refreshed.

Need to look into how to make this token either more long lived (in uisp?), or how to ask for a new token (Should this live in the UISP's http.RoundTripper to pull out new token and store it when received?)

byxorna commented 2 years ago

for future travelers: use the UISP admin interface to create an API token (with no expiry), instead of harvesting a token from a web session :)