code: public AuthenticationRequest getLoginRequest(AuthenticationAPIClient apiClient, String emailOrNumber) {
          Log.d(TAG, String.format("Generating Passwordless Login request for identity %s", emailOrNumber));
          if (getMode() == PasswordlessMode.EMAIL_CODE || getMode() == PasswordlessMode.EMAIL_LINK) {
              return apiClient.loginWithEmail(emailOrNumber, getCode());
          } else {
              return apiClient.loginWithPhoneNumber(emailOrNumber, getCode());
          }
      }
docs: Creates the AuthenticationRequest that will finish the Passwordless Authentication flow.
  
  @param apiClient     the API Client instance
  @param emailOrNumber the email or phone number used on the code request.
  @return the Passwordless login request.