Skip to content

Saved tokens expire silently #8

@kili-ilo

Description

@kili-ilo

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions