AuthConfig constructor
AuthConfig({
- required String table,
- required String emailColumn,
- required 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,
- required String redirectBase,
- String? jwtSecret,
- int jwtExpiryHours = 24,
- bool requireEmailVerification = false,
- int passwordMinLength = 6,
Implementation
AuthConfig({
// Database configuration
required this.table,
required this.emailColumn,
required this.passwordColumn,
this.nameColumn,
this.providerColumn,
this.providerIdColumn,
// Google OAuth
this.googleClientId,
this.googleClientSecret,
// GitHub OAuth
this.githubClientId,
this.githubClientSecret,
// Facebook OAuth
this.facebookClientId,
this.facebookClientSecret,
// Apple Sign In
this.appleClientId,
this.appleTeamId,
this.appleKeyId,
this.applePrivateKey,
// Application settings
required this.redirectBase,
this.jwtSecret,
// Security settings
this.jwtExpiryHours = 24,
this.requireEmailVerification = false,
this.passwordMinLength = 6,
});