AuthenticationProvider

public enum AuthenticationProvider : Codable, Hashable, SelfIdentifiable

A value representing an authentication provider.

Types

  • A value representing an authentication provider mode.

    It is used to provide specific password handling mode (‘password’ or ‘otp’) of email or phone authentication methods

    See more

    Declaration

    Swift

    public enum ProviderMode : Codable, CaseIterable, Hashable, SelfIdentifiable
  • A value that identifies a provider of the internal family.

    It is used for the associated value of the .internal(_:) case.

    See more

    Declaration

    Swift

    public enum InternalFamily : CaseIterable, Hashable, SelfIdentifiable
  • A value that identifies a provider of the OAuth2 family.

    It is used for the associated value of the .oAuth2(_:) case.

    See more

    Declaration

    Swift

    public enum OAuth2Family : Hashable, SelfIdentifiable

Cases

Initializers

  • Declaration

    Swift

    public init(from decoder: Decoder) throws

Encodable Protocol

  • Declaration

    Swift

    public func encode(to encoder: Encoder) throws

API

  • The pretty name of this provider.

    Declaration

    Swift

    public var prettyName: String { get }
  • Indicates whether this value matches a provider pattern.

    This operator behaves like the equality operator (==), except when the pattern matches the .oAuth2(_:) case in which case it relies on the OAuth2Family.matches(with:) method.

    Declaration

    Swift

    public func matches(with pattern: AuthenticationProvider) -> Bool

    Parameters

    pattern

    The pattern to match this value with.

    Return Value

    true when this value matches the pattern, false otherwise.