const response = await fetch('https://dev.api.baanx.com/v1/auth/register/phone/send', {
method: 'POST',
headers: {
'x-client-key': 'your-client-key',
'Content-Type': 'application/json'
},
body: JSON.stringify({
phoneCountryCode: '+44',
phoneNumber: '7400846282',
contactVerificationId: sessionStorage.getItem('contactVerificationId')
})
});
console.log('SMS verification code sent');