I have implemented authentication system and after upgrading from angular 1.0.8 to 1.2.x, system doesn't work as it used to. When user logs in it gets a token. When token is expired, a refresh function for new token is called. New token is successfully created on a server and it is stored to database. But client doesn't get this new token, so it requests a new token again, and again and again until it logs out. Server side (MVC Web Api) is working fine, so problem must be on client side. The problem must be on a retry queue. Below I pasted relevant code and a console trace for both versions of applications (1.0.8 and 1.2.x). I am struggling with this for days now and I can't figure it out.I have implemented authentication system and af