Open amitbravo opened 7 years ago
if I use retryVoice = true , it does not work , fail with "Uncaught exception" however working perfectly with false
sendOtp.retry(phone, false, function (error, data, res) { if(data.type == 'success'){ console.log('resent successfully'); admin.database().ref('/users/' + phone) .update({ code: code, codeValid: true }, () => { response.send({ success: true }); }); } else { return response.status(422).send(err); } });
if I use retryVoice = true , it does not work , fail with "Uncaught exception" however working perfectly with false
sendOtp.retry(phone, false, function (error, data, res) { if(data.type == 'success'){ console.log('resent successfully'); admin.database().ref('/users/' + phone) .update({ code: code, codeValid: true }, () => { response.send({ success: true }); }); } else { return response.status(422).send(err); } });