I think your problem is because the AuthManager
starts with a capital letter, when you use @set('AuthManager.accessToken', ...)
ember lookup the a global path, like window.AuthManager.accessToken
instead of controllerInstance.AuthManager.accessToken
so refactor your code to use just authManager
.
setInterval trigger several times, because it's a timer that executes repeatedly until clearInterval
is called, with the returned id from setInterval