spaces login must currently be re-run after an hour, though that's not communicated or documented anywhere. Otherwise, all API calls fail with an AuthenticationRequiredProblem that does not direct the user to re-run spaces login.
We should add a token validation step before each API call, which...
- if the token isn't expired, automatically refreshes it before proceeding with the API call.
- if the token is expired, prompts the user to run
spaces login again.
spaces loginmust currently be re-run after an hour, though that's not communicated or documented anywhere. Otherwise, all API calls fail with anAuthenticationRequiredProblemthat does not direct the user to re-runspaces login.We should add a token validation step before each API call, which...
spaces loginagain.