@metinazoz I don’t know what is wrong, although I only tested the code on the backend using this code:
import { authentication } from 'wix-members-backend'
export const createMember = async (email, password) => {
let options = {
contactInfo: {
firstName: "Test",
lastName: "Test",
coins: 100,
},
}
try {
const registrationResult = await authentication.register(
email,
password,
options
)
console.log(registrationResult)
} catch (error) {
console.error(error)
}
}