copyWith method

AuthConfig copyWith({
  1. String? table,
  2. String? emailColumn,
  3. String? passwordColumn,
  4. String? nameColumn,
  5. String? providerColumn,
  6. String? providerIdColumn,
  7. String? googleClientId,
  8. String? googleClientSecret,
  9. String? githubClientId,
  10. String? githubClientSecret,
  11. String? facebookClientId,
  12. String? facebookClientSecret,
  13. String? appleClientId,
  14. String? appleTeamId,
  15. String? appleKeyId,
  16. String? applePrivateKey,
  17. String? redirectBase,
  18. String? jwtSecret,
  19. int? jwtExpiryHours,
  20. bool? requireEmailVerification,
  21. 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,
  );
}