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, String>> customLoginRequestMapper(
    1. String email,
    2. String password
    )?,
  8. FutureOr<AuthenticationData>? customSignupCredentialsResponseParser(
    1. String response
    )?,
  9. bool? authenticateOnSignup,
  10. FutureOr<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<Map<String, String>> customRefreshTokenRequestBodyMapper(
    1. String refreshToken,
    2. String authToken
    )?,
  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. Uri authenticateAppleAPIendpoint(
    1. SocialProviderResponse socialData
    )?,
  26. Uri authenticateFacebookAPIendpoint(
    1. SocialProviderResponse socialData
    )?,
  27. Uri authenticateGoogleAPIendpoint(
    1. SocialProviderResponse socialData
    )?,
  28. Uri authenticateAnonymouslyAPIendpoint(
    1. SocialProviderResponse socialData
    )?,
  29. Uri setupUserFieldsAPIendpoint(
    1. AuthenticationData authenticationData
    )?,
  30. FutureOr<Map<String, String>> customAuthenticationAppleRequestMapper(
    1. SocialProviderResponse socialData
    )?,
  31. FutureOr<Map<String, String>> customAuthenticationFacebookRequestMapper(
    1. SocialProviderResponse socialData
    )?,
  32. FutureOr<Map<String, String>> customAuthenticationGoogleRequestMapper(
    1. SocialProviderResponse socialData
    )?,
  33. FutureOr<Map<String, String>> customAuthenticationAnonymousRequestMapper(
    1. SocialProviderResponse socialData
    )?,
  34. FutureOr<Map<String, String>> customSetupFieldsUserRequestMapper(
    1. AuthSignUpPayload payload,
    2. AuthenticationData authData
    )?,
  35. FutureOr<AuthenticationData> customAuthenticationGoogleResponseParser(
    1. String response
    )?,
  36. FutureOr<AuthenticationData> customAuthenticationAppleResponseParser(
    1. String response
    )?,
  37. FutureOr<AuthenticationData> customAuthenticationFacebookResponseParser(
    1. String response
    )?,
  38. FutureOr<AuthenticationData> customAuthenticationAnonymousResponseParser(
    1. String response
    )?,
  39. FutureOr<AuthenticationData> customSetupFieldsUserResponseParser(
    1. String response
    )?,
  40. WebAuthenticationOptions? appleWebAuthentication,
  41. 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, String>> Function(String email, String password)? customLoginRequestMapper,
  FutureOr<AuthenticationData>? Function(String response)? customSignupCredentialsResponseParser,
  bool? authenticateOnSignup,
  FutureOr<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<Map<String, String>> Function(String refreshToken, String authToken)? customRefreshTokenRequestBodyMapper,
  Duration? refreshTokenTimeout,
  void Function(String token, Object exception)? onRefreshTokenFailure,
  final Uri Function(String userId)? deleteAccountApiEndpoint,
  final User? Function(Map<String, dynamic> response)? deleteAccountCustomResponseParser,
  final bool? logoutAfterDelete,
  // 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)? customAuthenticationAppleRequestMapper,
  FutureOr<Map<String, String>> Function(SocialProviderResponse socialData)?
      customAuthenticationFacebookRequestMapper,
  FutureOr<Map<String, String>> Function(SocialProviderResponse socialData)? customAuthenticationGoogleRequestMapper,
  FutureOr<Map<String, String>> Function(SocialProviderResponse socialData)?
      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,
  WebAuthenticationOptions? appleWebAuthentication,
  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,
    // 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,
    appleWebAuthentication: appleWebAuthentication ?? this.appleWebAuthentication,
    shouldDeleteOnFirebase: shouldDeleteOnFirebase ?? this.shouldDeleteOnFirebase,
  );
}