copyWith method
AuthConfig
copyWith({
- String? table,
- String? emailColumn,
- String? passwordColumn,
- String? nameColumn,
- String? providerColumn,
- String? providerIdColumn,
- String? googleClientId,
- String? googleClientSecret,
- String? githubClientId,
- String? githubClientSecret,
- String? facebookClientId,
- String? facebookClientSecret,
- String? appleClientId,
- String? appleTeamId,
- String? appleKeyId,
- String? applePrivateKey,
- String? redirectBase,
- String? jwtSecret,
- int? jwtExpiryHours,
- bool? requireEmailVerification,
- int? passwordMinLength,
Implementation
AuthConfig copyWith({
String? table,
String? emailColumn,
String? passwordColumn,
String? nameColumn,
String? providerColumn,
String? providerIdColumn,
String? googleClientId,
String? googleClientSecret,
String? githubClientId,
String? githubClientSecret,
String? facebookClientId,
String? facebookClientSecret,
String? appleClientId,
String? appleTeamId,
String? appleKeyId,
String? applePrivateKey,
String? redirectBase,
String? jwtSecret,
int? jwtExpiryHours,
bool? requireEmailVerification,
int? passwordMinLength,
}) {
return AuthConfig(
table: table ?? this.table,
emailColumn: emailColumn ?? this.emailColumn,
passwordColumn: passwordColumn ?? this.passwordColumn,
nameColumn: nameColumn ?? this.nameColumn,
providerColumn: providerColumn ?? this.providerColumn,
providerIdColumn: providerIdColumn ?? this.providerIdColumn,
googleClientId: googleClientId ?? this.googleClientId,
googleClientSecret: googleClientSecret ?? this.googleClientSecret,
githubClientId: githubClientId ?? this.githubClientId,
githubClientSecret: githubClientSecret ?? this.githubClientSecret,
facebookClientId: facebookClientId ?? this.facebookClientId,
facebookClientSecret: facebookClientSecret ?? this.facebookClientSecret,
appleClientId: appleClientId ?? this.appleClientId,
appleTeamId: appleTeamId ?? this.appleTeamId,
appleKeyId: appleKeyId ?? this.appleKeyId,
applePrivateKey: applePrivateKey ?? this.applePrivateKey,
redirectBase: redirectBase ?? this.redirectBase,
jwtSecret: jwtSecret ?? this.jwtSecret,
jwtExpiryHours: jwtExpiryHours ?? this.jwtExpiryHours,
requireEmailVerification:
requireEmailVerification ?? this.requireEmailVerification,
passwordMinLength: passwordMinLength ?? this.passwordMinLength,
);
}