Add broadcasting "login required" event when the API send a 401 HTTP error code