label
This commit is contained in:
@@ -58,6 +58,13 @@ class AuthenticationRepository extends GetxController {
|
||||
);
|
||||
}
|
||||
|
||||
Future<bool> verifyOTP(String otp) async {
|
||||
var credentials = await _auth.signInWithCredential(
|
||||
PhoneAuthProvider.credential(
|
||||
verificationId: verificationId.value, smsCode: otp));
|
||||
return credentials.user != null ? true : false;
|
||||
}
|
||||
|
||||
Future<void> updatePhoneNumber(String verificationId, String smsCode) async {
|
||||
try {
|
||||
PhoneAuthCredential credential = PhoneAuthProvider.credential(
|
||||
@@ -69,13 +76,6 @@ class AuthenticationRepository extends GetxController {
|
||||
}
|
||||
}
|
||||
|
||||
Future<bool> verifyOTP(String otp) async {
|
||||
var credentials = await _auth.signInWithCredential(
|
||||
PhoneAuthProvider.credential(
|
||||
verificationId: verificationId.value, smsCode: otp));
|
||||
return credentials.user != null ? true : false;
|
||||
}
|
||||
|
||||
Future<void> createUserWithEmailAndPassword(
|
||||
String email, String password) async {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user