ProviderCapabilities

public struct ProviderCapabilities

Defines the behavior of a credential based on its authentication provider.

  • A bool indicating whether or not logging in with this credential will re-use the existing authenticated session if there is one. If this is true, then no authentication with the server will be performed if the client is already authenticated, and the existing session will be used. If this is false, then the client will log out of its existing session if it is already logged in.

    Declaration

    Swift

    public let reusesExistingSession: Bool
  • Initializes this ProviderCapabilities struct.

    Declaration

    Swift

    public init(reusesExistingSession: Bool = false)

    Parameters

    reusesExistingSession

    Whether or not the credential described by this ProviderCapabilities should reuse an existing session when logging in.