$stateChangeError TypeError: Auth.getAuthState is not a function(…)

the browser is blank and displaying this error does anyone know what it means and how to fix it?

$stateChangeError TypeError: Auth.getAuthState is not a function(…)

the code i have is the following:

// Redirect the user to the login state if unAuthenticated
$rootScope.$on(’$stateChangeError’, function(event, toState, toParams, fromState, fromParams, error) {
console.log("$stateChangeError", error);
event.preventDefault(); // http://goo.gl/se4vxu
if(error == “AUTH_LOGGED_OUT”) {
$ionicHistory.nextViewOptions({
disableAnimate: true,
disableBack: true
});
$state.go(‘tab.account’);
}
});
})