Skip to content

[$75] Auth token sometimes is not updated #3704

@maxceem

Description

@maxceem

In Connect App we are sending requests to the server to get new notifications with some interval.
To get notifications we use the token for authentication, but token expires after some period of time and has to be renewed.

At some reason, currently, token is not renewed immediately when it's needed:
image

How to reproduce

  1. Load page with project listing and leave it for some time with Networks tab opened.
  2. With some interval of time notifications would be loaded successfully.
  3. At some moment requests would start failing.
  4. After that at some moment the token would be reviwed automatically.
  5. And new notifications would be loaded successfully.

Expected

All the requests should be successful. I guess at the time we are making any request we should always follow the next logic:

  • check if the token is expired or no
  • if expired, retrieve a new token
  • make a request

Metadata

Metadata

Assignees

No one assigned

    Labels

    Cannot reproduceIssues which cannot be reproduced as per description provided.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions