Skip to content

Create a separate task to refresh tokens

Yakubov, Sergey requested to merge 116-refresh-tokens-in-a-separate-thread into dev

Summary of Changes

With the previous method to refresh tokens when processing a REST API call, there was a race condition that resulted in writing an invalid refresh token to the database and failing all consequent refreshes. With this MR we create an interval task that periodically goes over all users and refreshed their tokens.

There are also some changes due to `make format`, we need to add git pre-commit to avoid that in the future.

Checklist

  • The MR has a clear and concise title
  • Code is self-documented and follows style guidelines.
  • Automated tests are written and pass successfully.
  • Regression tests (e.g. manually triggered system tests, manual GUI/tool tests, ...) are performed to make sure the MR does not break anything (when applicable)
  • Readme file is present and up-to-date.

Documentation Updates

Additional Notes

Closes #116 (closed)

Merge request reports