Rank 2: Process
i have made an api_function where i am sending otp to the user and now i want to check if the entered otp and the generated otp is correct so how do i get the otp generated from the backend appwrite . here's my otp sending function - ``` @override
FutureEither otp({required String data}) async {
try{
final functionss = await _function.createExecution(
functionId: 'UserAuth',
data: data,
);
verifyOTP(enteredOTP: functionss.response);
print(functionss.response);
return right(functionss);
} catch (e, stackTrace) {
return left(
Failure(e.toString(), stackTrace)
);
}
}```