copyWith method
AuthenticationFireSocialConfig
copyWith({
- Uri loginCredentialsAPIendpoint()?,
- Uri signupCredentialsAPIendpoint()?,
- FutureOr<
AuthenticationData> customLoginResponseParser(- String response
- FutureOr<
User> ? customUserMapper()?, - Uri refreshTokenAPIendpoint(
- String refreshToken,
- JWT token
- bool? debug,
- FutureOr<
Map< customLoginRequestMapper()?,String, String> > - FutureOr<
AuthenticationData> ? customSignupCredentialsResponseParser(- String response
- bool? authenticateOnSignup,
- FutureOr<
AuthCredentialsProvider> customAutoSignupAuthClbk(- AuthSignUpPayload payload,
- AuthenticationData? authData
- Uri fetchUserInformationAPIendpoint(
- AuthenticationData data
- FutureOr<
Map< customFetchUserInformationResponseMapper()?,String, dynamic> > - bool? initialAuthCheckedAfterUserFetch,
- bool? autoLogoutOnSessionExpired,
- Duration? maxAge,
- FutureOr<
Map< customRefreshTokenResponseParser(String, String> >- String body
- void onRefreshToken()?,
- String? refreshTokenMethod,
- FutureOr<
Map< customRefreshTokenRequestBodyMapper()?,String, String> > - Duration? refreshTokenTimeout,
- void onRefreshTokenFailure()?,
- Uri deleteAccountApiEndpoint(
- String userId
- User? deleteAccountCustomResponseParser()?,
- bool? logoutAfterDelete,
- Uri authenticateAppleAPIendpoint(
- SocialProviderResponse socialData
- Uri authenticateFacebookAPIendpoint(
- SocialProviderResponse socialData
- Uri authenticateGoogleAPIendpoint(
- SocialProviderResponse socialData
- Uri authenticateAnonymouslyAPIendpoint(
- SocialProviderResponse socialData
- Uri setupUserFieldsAPIendpoint(
- AuthenticationData authenticationData
- FutureOr<
Map< customAuthenticationAppleRequestMapper(String, String> >- SocialProviderResponse socialData
- FutureOr<
Map< customAuthenticationFacebookRequestMapper(String, String> >- SocialProviderResponse socialData
- FutureOr<
Map< customAuthenticationGoogleRequestMapper(String, String> >- SocialProviderResponse socialData
- FutureOr<
Map< customAuthenticationAnonymousRequestMapper(String, String> >- SocialProviderResponse socialData
- FutureOr<
Map< customSetupFieldsUserRequestMapper(String, String> >- AuthSignUpPayload payload,
- AuthenticationData authData
- FutureOr<
AuthenticationData> customAuthenticationGoogleResponseParser(- String response
- FutureOr<
AuthenticationData> customAuthenticationAppleResponseParser(- String response
- FutureOr<
AuthenticationData> customAuthenticationFacebookResponseParser(- String response
- FutureOr<
AuthenticationData> customAuthenticationAnonymousResponseParser(- String response
- FutureOr<
AuthenticationData> customSetupFieldsUserResponseParser(- String response
- WebAuthenticationOptions? appleWebAuthentication,
- 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,
);
}