Commit fd8cc47b authored by Randall Leeds's avatar Randall Leeds

Once logged in, set the auth promise to resolved

This ensures that after logging in the token getter resolves
properly.
parent 74652f5d
...@@ -119,6 +119,7 @@ function requestAuthentication($injector, $q, $rootScope) { ...@@ -119,6 +119,7 @@ function requestAuthentication($injector, $q, $rootScope) {
deferred.reject(err); deferred.reject(err);
} else { } else {
$injector.invoke(fetchToken).then(function (token) { $injector.invoke(fetchToken).then(function (token) {
authPromise = deferred.promise;
deferred.resolve(token); deferred.resolve(token);
}); });
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment