registerUser method
Registers a new user using the API.
This method sends a registration request to the API with the user's login identifier (e.g., username or email) and hashed password.
userName: The user's login identifier.hashedPassword: The user's hashed password.
Returns an ApiReturn object containing the response from the API.
Implementation
Future<ApiReturn> registerUser({
required String userName,
required String hashedPassword,
}) async {
ApiReturn apiResponse = await _apiConnector.getUserRepo().registerUser(
userName: userName,
hashedPassword: hashedPassword,
);
return apiResponse;
}