Skip to content

Commit

Permalink
refactor: requestOtp now takes OTPObtainRequest instead of only email
Browse files Browse the repository at this point in the history
  • Loading branch information
adar2378 committed Sep 8, 2023
1 parent 746a1c3 commit bbe9129
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,12 @@ class AuthCubit extends HydratedCubit<AuthState> {
return result;
}) as UserSignup?;

Future<void> requestOTP({required String email}) async => _authApiChecker(
/// Request OTP for verification.
Future<void> requestOTP({required OTPObtainRequest otpObtainRequest}) async =>
_authApiChecker(
() async => (
await authApi?.authOtpCreate(
oTPObtainRequest: OTPObtainRequest(email: email),
oTPObtainRequest: otpObtainRequest,
),
),
);
Expand Down

0 comments on commit bbe9129

Please sign in to comment.