Backand return error this when I run the signUp method...
Here's the signup method...
function signUp(firstName, lastName, email, password) {
var canceller = $q.defer();
var cancel = function(reason) {
canceller.resolve(reason);
};
var promise = $http({
method: 'POST',
url: CONSTS.backandUrl + '/user/signup',
data: {
firstName: firstName,
lastName: lastName,
email: email,
password: password
},
timeout: canceller.promise,
ignoreLoadingBar: true
});
return {
promise: promise,
cancel: cancel
};
}
I have set the sign up and even the anonymous token as per the documentation.
function(BackandProvider, CONSTS) {
BackandProvider.setAnonymousToken(CONSTS.anonymousToken);
BackandProvider.setSignUpToken(CONSTS.signUpToken);
BackandProvider.setAppName(CONSTS.appName);
}
Am I missing something? Would appreciate a point in the right direction.