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