Bug with requests sent after token expiration and before token refresh
If a request happens to be sent to the server after the token expiration and before the token is being refreshed, it will return an error (as expected). But right after the token is refreshed, it would not return an error anymore. The request should then be refreshed.