Basic login doesn't work with ionic.io platform

I am using Ionic Platform’s Auth service to register and login user. Signup works fine but while logging in, it doesn’t call the success function neither the error function. The console, however, shows the message ''Ionic User: loaded user".

Ionic.Auth.login('basic', {'remember': true}, details).then(
 	function(loggeduser){
            console.log("logged in");
	    $ionicLoading.hide();
	    $state.go('app.dashboard');
	}, function(error){
	    $ionicLoading.hide();
	    vm.showAlert('Invalid username or password.');
  	}
);