I’m getting a 403 error with the reason “Email already exists”, when I call my Accounts.createUser function. The user is being created when I check the database, but for some reason an error is still being thrown. My code is below:
Accounts.createUser({
email,
password,
}, (err) => {
if (err) {
console.log(err);
} else browserHistory.push('/');
});
Any ideas on what I might be doing wrong?
Edit: Spelled a word wrong. Please delete