I am working on IONIC User authentication.
Please refer to this "docs.ionic.io/docs/user-authentication#section-gathering-more-data" .
In this I am not able to catch the retu object properly. and here is my code below
var details = {
'email': '[email protected]',
'password': 'secret'
}
var signupSuccess = function(user) {
if (user) {
retu "Signup Success";
}
};
var signupFailure = function(errors) {
for (var err in errors) {
retu err;
}
};
var check = Ionic.Auth.signup(details).then(signupSuccess, signupFailure);
console.log(check);
console.log(check._result);
If user is not already registered or signup success then I am getting the following result.
If user is already registered or signup failed then I am getting the following result.
Now I am also seeing the INFO (i) button with in the console log message
Object values at left was snapshotted when logged, value below was evaluated just now.
Can anyone please how to fix this issues. Even I have tried writing the try block but still I am getting POST error in console and I am not even able to extract the value from the Object.
Thank in advance.
