Skip to content

Speed things up using lazy token refresh #5

@l2zou

Description

@l2zou

Currently, the client requests new tokens from the server every time a request needs to be made to simplify things. However, this can slow the application by a lot.

The measure that can be taken against this is just to request the information with the current token. The server would let us know that it is expired, and then we can request new tokens and then re-send the request.

This will speed things up in the general case, but make things worse in the worst case. The worst case is rare, however (waiting 5 minutes before making the next request), so this should be fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions