Cura/plugins/Toolbox
Ghostkeeper 3f92b46ac8
Don't restart refresh token while it's already processing
If two requests to the API occur at the same time, they will both see at the same time that they need an access token, and if it is expired they will both see that it needs refreshing. The server then sees two refreshes, both with the same refresh token. This is not allowed. The second one then gets a failure to refresh the token, which causes the user to log out.
Instead, we'll stop one of the refresh requests. They were fire-and-forget anyway, so it's not needed to actually continue the request.

Contributes to issue CURA-8539.
2021-11-22 18:52:43 +01:00
..
resources Style the "no plugin/material installed" texts in the installed tab 2021-08-24 13:33:05 +02:00
src Don't restart refresh token while it's already processing 2021-11-22 18:52:43 +01:00
__init__.py Fix Toolbox import error (continued) 2020-01-16 14:39:10 +01:00
plugin.json Now unused API field only took integers originally. 2021-06-17 11:15:33 +02:00