UserIdentityFeatureConfig constructor
UserIdentityFeatureConfig()
Implementation
UserIdentityFeatureConfig(
this.appName,
int? authTimeout,
bool? showLogoutOnTitleBar,
this.allowedEmailDomains,
this.allowedEmailExample,
bool? mobileNumberRequired,
bool? mobileDialCodeReadOnly,
String? mobileNumberCountryCode,
this.customProfileInput,
) : showLogoutOnTitleBar = showLogoutOnTitleBar ?? false,
mobileNumberRequired = mobileNumberRequired ?? true,
mobileDialCodeReadOnly = mobileDialCodeReadOnly ?? false {
// Determine country code for mobile number
// from locale if not explicitly provided
if (mobileNumberCountryCode == null) {
final locale = Intl.getCurrentLocale();
this.mobileNumberCountryCode = locale.substring(locale.length - 2);
} else {
this.mobileNumberCountryCode = mobileNumberCountryCode;
}
// Default auth timeout to 15 minutes
this.authTimeout = authTimeout ?? 15;
}