Skip to content
This repository has been archived by the owner on Apr 11, 2023. It is now read-only.

Implement logic to handle access token expiry #1802

Open
Tracked by #1806
birtony opened this issue Jul 20, 2022 · 0 comments
Open
Tracked by #1806

Implement logic to handle access token expiry #1802

birtony opened this issue Jul 20, 2022 · 0 comments
Assignees
Labels
area: UI Something related to UI type: bug Something isn't working
Milestone

Comments

@birtony
Copy link
Contributor

birtony commented Jul 20, 2022

As per @rolsonquadras's comment, currently we have the following problem:

  • Keep the page open for 25 mins without action
  • Click on Vaults tab - shows loading screen with console error
    Error: agent wasm: code: 12008, message: failed to get VC wallet profile: failed to get value from main store: failed to get value from underlying store: failed to get encrypted document stored under a deterministic document ID: failed to retrieve document from EDV server: status code 401 was returned along with the following message: unauthorized

We need to come up with a solution that would redo the authentication flow once access token is expired instead of sending requests to the server with expired token, which would throw an error.

Probably we could add this check to any server call we make.

@birtony birtony added type: bug Something isn't working area: UI Something related to UI labels Jul 20, 2022
@birtony birtony added this to the 0.1.9 milestone Jul 20, 2022
@birtony birtony moved this to Todo in TrustBloc Wallet/VCS Jul 20, 2022
@rolsonquadras rolsonquadras moved this from Todo to In Progress in TrustBloc Wallet/VCS Sep 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: UI Something related to UI type: bug Something isn't working
Projects
No open projects
Status: In Progress
Development

No branches or pull requests

1 participant