25-11-18/1
This commit is contained in:
@@ -47,11 +47,13 @@ class PhoneAuthHelper {
|
||||
}
|
||||
|
||||
/// Verifies the OTP and logs the user in.
|
||||
static Future<void> verifyOtp(String phoneNumber, String otp) async {
|
||||
static Future<void> verifyOtp(String phoneNumber) async {
|
||||
try {
|
||||
final response = await CRUD().post(
|
||||
link: _verifyOtpUrl,
|
||||
payload: {'phone_number': phoneNumber, 'otp': otp},
|
||||
payload: {
|
||||
'phone_number': phoneNumber,
|
||||
},
|
||||
);
|
||||
|
||||
if (response != 'failure') {
|
||||
|
||||
Reference in New Issue
Block a user