copyWith method

  1. @override
AuthenticationFireSocialConfig copyWith({
  1. Uri loginCredentialsAPIendpoint()?,
  2. Uri signupCredentialsAPIendpoint()?,
  3. FutureOr<AuthenticationData> customLoginResponseParser(
    1. String response
    )?,
  4. FutureOr<User>? customUserMapper(
    1. Map<String, dynamic> userMap
    )?,
  5. Uri refreshTokenAPIendpoint(
    1. String refreshToken,
    2. JWT token
    )?,
  6. bool? debug,
  7. FutureOr<Map<String, dynamic>> customLoginRequestMapper(
    1. String email,
    2. String password,
    3. AuthDeviceInfo? deviceInfo
    )?,
  8. FutureOr<AuthenticationData>? customSignupCredentialsResponseParser(
    1. String response
    )?,
  9. bool? authenticateOnSignup,
  10. AuthCredentialsProvider customAutoSignupAuthClbk(
    1. AuthSignUpPayload payload,
    2. AuthenticationData? authData
    )?,
  11. Uri fetchUserInformationAPIendpoint(
    1. AuthenticationData data
    )?,
  12. FutureOr<Map<String, dynamic>> customFetchUserInformationResponseMapper(
    1. Map<String, dynamic> data
    )?,
  13. bool? initialAuthCheckedAfterUserFetch,
  14. bool? autoLogoutOnSessionExpired,
  15. Duration? maxAge,
  16. FutureOr<Map<String, String>> customRefreshTokenResponseParser(
    1. String body
    )?,
  17. void onRefreshToken(
    1. Map<String, String> tokens
    )?,
  18. String? refreshTokenMethod,
  19. FutureOr<String> customRefreshTokenRequestBodyMapper(
    1. String refreshToken,
    2. String authToken,
    3. AuthDeviceInfo? deviceInfo
    )?,
  20. Duration? refreshTokenTimeout,
  21. void onRefreshTokenFailure(
    1. String token,
    2. Object exception
    )?,
  22. Uri deleteAccountApiEndpoint(
    1. String userId
    )?,
  23. User? deleteAccountCustomResponseParser(
    1. Map<String, dynamic> response
    )?,
  24. bool? logoutAfterDelete,
  25. FutureOr<Map<String, String>> customRefreshTokenCallback(
    1. String token,
    2. String? refreshToken,
    3. AuthDeviceInfo? deviceInfo
    )?,
  26. bool? provideDeviceInfo,
  27. Uri authenticateAppleAPIendpoint(
    1. SocialProviderResponse socialData
    )?,
  28. Uri authenticateFacebookAPIendpoint(
    1. SocialProviderResponse socialData
    )?,
  29. Uri authenticateGoogleAPIendpoint(
    1. SocialProviderResponse socialData
    )?,
  30. Uri authenticateAnonymouslyAPIendpoint(
    1. SocialProviderResponse socialData
    )?,
  31. Uri setupUserFieldsAPIendpoint(
    1. AuthenticationData authenticationData
    )?,
  32. FutureOr<Map<String, String>> customAuthenticationAppleRequestMapper(
    1. SocialProviderResponse socialData,
    2. AuthDeviceInfo? authDeviceInfo
    )?,
  33. FutureOr<Map<String, String>> customAuthenticationFacebookRequestMapper(
    1. SocialProviderResponse socialData,
    2. AuthDeviceInfo? authDeviceInfo
    )?,
  34. FutureOr<Map<String, String>> customAuthenticationGoogleRequestMapper(
    1. SocialProviderResponse socialData,
    2. AuthDeviceInfo? authDeviceInfo
    )?,
  35. FutureOr<Map<String, String>> customAuthenticationAnonymousRequestMapper(
    1. SocialProviderResponse socialData,
    2. AuthDeviceInfo? authDeviceInfo
    )?,
  36. FutureOr<Map<String, String>> customSetupFieldsUserRequestMapper(
    1. AuthSignUpPayload payload,
    2. AuthenticationData authData
    )?,
  37. FutureOr<AuthenticationData> customAuthenticationGoogleResponseParser(
    1. String response
    )?,
  38. FutureOr<AuthenticationData> customAuthenticationAppleResponseParser(
    1. String response
    )?,
  39. FutureOr<AuthenticationData> customAuthenticationFacebookResponseParser(
    1. String response
    )?,
  40. FutureOr<AuthenticationData> customAuthenticationAnonymousResponseParser(
    1. String response
    )?,
  41. FutureOr<AuthenticationData> customSetupFieldsUserResponseParser(
    1. String response
    )?,
  42. bool? shouldDeleteOnFirebase,
})
override

Implementation

@override
AuthenticationFireSocialConfig copyWith({
  Uri Function()? loginCredentialsAPIendpoint,
  Uri Function()? signupCredentialsAPIendpoint,
  FutureOr<AuthenticationData> Function(String response)? customLoginResponseParser,
  FutureOr<User>? Function(Map<String, dynamic> userMap)? customUserMapper,
  Uri Function(String refreshToken, JWT token)? refreshTokenAPIendpoint,
  bool? debug,
  FutureOr<Map<String, dynamic>> Function(String email, String password, AuthDeviceInfo? deviceInfo)?
      customLoginRequestMapper,
  FutureOr<AuthenticationData>? Function(String response)? customSignupCredentialsResponseParser,
  bool? authenticateOnSignup,
  AuthCredentialsProvider Function(AuthSignUpPayload payload, AuthenticationData? authData)? customAutoSignupAuthClbk,
  Uri Function(AuthenticationData data)? fetchUserInformationAPIendpoint,
  FutureOr<Map<String, dynamic>> Function(Map<String, dynamic> data)? customFetchUserInformationResponseMapper,
  bool? initialAuthCheckedAfterUserFetch,
  bool? autoLogoutOnSessionExpired,
  Duration? maxAge,
  FutureOr<Map<String, String>> Function(String body)? customRefreshTokenResponseParser,
  void Function(Map<String, String> tokens)? onRefreshToken,
  String? refreshTokenMethod,
  FutureOr<String> Function(String refreshToken, String authToken, AuthDeviceInfo? deviceInfo)?
      customRefreshTokenRequestBodyMapper,
  Duration? refreshTokenTimeout,
  void Function(String token, Object exception)? onRefreshTokenFailure,
  Uri Function(String userId)? deleteAccountApiEndpoint,
  User? Function(Map<String, dynamic> response)? deleteAccountCustomResponseParser,
  bool? logoutAfterDelete,
  FutureOr<Map<String, String>> Function(String token, String? refreshToken, AuthDeviceInfo? deviceInfo)?
      customRefreshTokenCallback,
  bool? provideDeviceInfo,
  // own class
  Uri Function(SocialProviderResponse socialData)? authenticateAppleAPIendpoint,
  Uri Function(SocialProviderResponse socialData)? authenticateFacebookAPIendpoint,
  Uri Function(SocialProviderResponse socialData)? authenticateGoogleAPIendpoint,
  Uri Function(SocialProviderResponse socialData)? authenticateAnonymouslyAPIendpoint,
  Uri Function(AuthenticationData authenticationData)? setupUserFieldsAPIendpoint,
  FutureOr<Map<String, String>> Function(SocialProviderResponse socialData, AuthDeviceInfo? authDeviceInfo)?
      customAuthenticationAppleRequestMapper,
  FutureOr<Map<String, String>> Function(SocialProviderResponse socialData, AuthDeviceInfo? authDeviceInfo)?
      customAuthenticationFacebookRequestMapper,
  FutureOr<Map<String, String>> Function(SocialProviderResponse socialData, AuthDeviceInfo? authDeviceInfo)?
      customAuthenticationGoogleRequestMapper,
  FutureOr<Map<String, String>> Function(SocialProviderResponse socialData, AuthDeviceInfo? authDeviceInfo)?
      customAuthenticationAnonymousRequestMapper,
  FutureOr<Map<String, String>> Function(AuthSignUpPayload payload, AuthenticationData authData)?
      customSetupFieldsUserRequestMapper,
  FutureOr<AuthenticationData> Function(String response)? customAuthenticationGoogleResponseParser,
  FutureOr<AuthenticationData> Function(String response)? customAuthenticationAppleResponseParser,
  FutureOr<AuthenticationData> Function(String response)? customAuthenticationFacebookResponseParser,
  FutureOr<AuthenticationData> Function(String response)? customAuthenticationAnonymousResponseParser,
  FutureOr<AuthenticationData> Function(String response)? customSetupFieldsUserResponseParser,
  bool? shouldDeleteOnFirebase,
}) {
  return AuthenticationFireSocialConfig(
    loginCredentialsAPIendpoint: loginCredentialsAPIendpoint ?? this.loginCredentialsAPIendpoint,
    signupCredentialsAPIendpoint: signupCredentialsAPIendpoint ?? this.signupCredentialsAPIendpoint,
    customLoginResponseParser: customLoginResponseParser ?? this.customLoginResponseParser,
    customUserMapper: customUserMapper ?? this.customUserMapper,
    refreshTokenAPIendpoint: refreshTokenAPIendpoint ?? this.refreshTokenAPIendpoint,
    debug: debug ?? this.debug,
    customLoginRequestMapper: customLoginRequestMapper ?? this.customLoginRequestMapper,
    customSignupCredentialsResponseParser:
        customSignupCredentialsResponseParser ?? this.customSignupCredentialsResponseParser,
    authenticateOnSignup: authenticateOnSignup ?? this.authenticateOnSignup,
    customAutoSignupAuthClbk: customAutoSignupAuthClbk ?? this.customAutoSignupAuthClbk,
    fetchUserInformationAPIendpoint: fetchUserInformationAPIendpoint ?? this.fetchUserInformationAPIendpoint,
    customFetchUserInformationResponseMapper:
        customFetchUserInformationResponseMapper ?? this.customFetchUserInformationResponseMapper,
    initialAuthCheckedAfterUserFetch: initialAuthCheckedAfterUserFetch ?? this.initialAuthCheckedAfterUserFetch,
    autoLogoutOnSessionExpired: autoLogoutOnSessionExpired ?? this.autoLogoutOnSessionExpired,
    maxAge: maxAge ?? this.maxAge,
    customRefreshTokenResponseParser: customRefreshTokenResponseParser ?? this.customRefreshTokenResponseParser,
    onRefreshToken: onRefreshToken ?? this.onRefreshToken,
    refreshTokenMethod: refreshTokenMethod ?? this.refreshTokenMethod,
    customRefreshTokenRequestBodyMapper:
        customRefreshTokenRequestBodyMapper ?? this.customRefreshTokenRequestBodyMapper,
    refreshTokenTimeout: refreshTokenTimeout ?? this.refreshTokenTimeout,
    onRefreshTokenFailure: onRefreshTokenFailure ?? this.onRefreshTokenFailure,
    deleteAccountApiEndpoint: deleteAccountApiEndpoint ?? this.deleteAccountApiEndpoint,
    deleteAccountCustomResponseParser: deleteAccountCustomResponseParser ?? this.deleteAccountCustomResponseParser,
    logoutAfterDelete: logoutAfterDelete ?? this.logoutAfterDelete,
    customRefreshTokenCallback: customRefreshTokenCallback ?? this.customRefreshTokenCallback,
    // own props
    authenticateAppleAPIendpoint: authenticateAppleAPIendpoint ?? this.authenticateAppleAPIendpoint,
    authenticateFacebookAPIendpoint: authenticateFacebookAPIendpoint ?? this.authenticateFacebookAPIendpoint,
    authenticateGoogleAPIendpoint: authenticateGoogleAPIendpoint ?? this.authenticateGoogleAPIendpoint,
    authenticateAnonymouslyAPIendpoint: authenticateAnonymouslyAPIendpoint ?? this.authenticateAnonymouslyAPIendpoint,
    setupUserFieldsAPIendpoint: setupUserFieldsAPIendpoint ?? this.setupUserFieldsAPIendpoint,
    customAuthenticationAppleRequestMapper:
        customAuthenticationAppleRequestMapper ?? this.customAuthenticationAppleRequestMapper,
    customAuthenticationFacebookRequestMapper:
        customAuthenticationFacebookRequestMapper ?? this.customAuthenticationFacebookRequestMapper,
    customAuthenticationGoogleRequestMapper:
        customAuthenticationGoogleRequestMapper ?? this.customAuthenticationGoogleRequestMapper,
    customSetupFieldsUserRequestMapper: customSetupFieldsUserRequestMapper ?? this.customSetupFieldsUserRequestMapper,
    customAuthenticationAnonymousRequestMapper:
        customAuthenticationAnonymousRequestMapper ?? this.customAuthenticationAnonymousRequestMapper,
    customAuthenticationGoogleResponseParser:
        customAuthenticationGoogleResponseParser ?? this.customAuthenticationGoogleResponseParser,
    customAuthenticationAppleResponseParser:
        customAuthenticationAppleResponseParser ?? this.customAuthenticationAppleResponseParser,
    customAuthenticationFacebookResponseParser:
        customAuthenticationFacebookResponseParser ?? this.customAuthenticationFacebookResponseParser,
    customAuthenticationAnonymousResponseParser:
        customAuthenticationAnonymousResponseParser ?? this.customAuthenticationAnonymousResponseParser,
    customSetupFieldsUserResponseParser:
        customSetupFieldsUserResponseParser ?? this.customSetupFieldsUserResponseParser,
    shouldDeleteOnFirebase: shouldDeleteOnFirebase ?? this.shouldDeleteOnFirebase,
  );
}