label method

String label()

Returns the label for this login method. This is useful only in the developer tools or UI.

Implementation

String label() {
  return switch (this) {
    LoginMethod.unknown => 'Unknown',
    LoginMethod.anonymous => 'Anonymous',
    LoginMethod.emailPassword => 'Email/Password',
    LoginMethod.phoneOtp => 'Phone OTP',
    LoginMethod.emailLink => 'Email Link',
    LoginMethod.google => 'Google',
    LoginMethod.facebook => 'Facebook',
    LoginMethod.apple => 'Apple',
    LoginMethod.twitter => 'Twitter',
    LoginMethod.github => 'GitHub',
    LoginMethod.linkedin => 'LinkedIn',
    LoginMethod.microsoft => 'Microsoft',
    LoginMethod.custom => 'Custom'
  };
}