authModeToString method
Generates a string from a MBUserAuthMode
Implementation
String authModeToString(MBUserAuthMode authMode) {
if (authMode == MBUserAuthMode.email) {
return 'email';
} else if (authMode == MBUserAuthMode.facebook) {
return 'facebook';
} else if (authMode == MBUserAuthMode.google) {
return 'google';
} else if (authMode == MBUserAuthMode.apple) {
return 'apple';
} else if (authMode == MBUserAuthMode.shopify) {
return 'shopify';
}
return 'email';
}