Hi, when I run use wix-members to call the authentication.register() function, the Promise member object includes loginEmail :
import { authentication } from 'wix-members';
let emails = [];
let options = {
contactInfo: {
emails: [emails],
},
privacyStatus: 'PUBLIC'
}
authentication.register(email, password, options)
.then((registrationResult) => {
return registrationResult;
})
.catch((error) => {
console.error(error);
})
// registratioResult.member.loginEmail ✅
But when I run the same function from wix-members-backend, the member object does not include loginEmail:
import { authentication } from 'wix-members-backend';
let emails = [];
let options = {
contactInfo: {
emails: [emails],
},
privacyStatus: 'PUBLIC'
}
authentication.register(email, password, options)
.then((registrationResult) => {
return registrationResult;
})
.catch((error) => {
console.error(error);
})
// registratioResult.member.loginEmail ❌
The docs say both API’s should return loginEmail on the members object.
Any ideas?
Thanks