added api for forgot password otp
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import 'package:tm_app/data/services/model/forgot_password_response/forgot_password_response_model.dart';
|
||||
import 'package:tm_app/data/services/model/login_response/login_response_model.dart';
|
||||
import 'package:tm_app/data/services/model/verify_otp_response/verify_otp_response_model.dart';
|
||||
|
||||
import '../../core/utils/result.dart';
|
||||
import '../services/auth_service.dart';
|
||||
@@ -31,4 +32,11 @@ class AuthRepository {
|
||||
}) async {
|
||||
return _authService.forgotPassword(email: email);
|
||||
}
|
||||
|
||||
Future<Result<VerifyOtpResponseModel>> verifyOtp({
|
||||
required String code,
|
||||
required String email,
|
||||
}) async {
|
||||
return _authService.verifyOtp(code: code, email: email);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user