StitchCredential

public protocol StitchCredential

A credential which can be used to log in as a Stitch user. There is an implementation for each authentication provider available in MongoDB Stitch. These implementations can be generated using an authentication provider client.

  • The name of the authentication provider that this credential will be used to authenticate with.

    Declaration

    Swift

    var providerName: String { get }
  • The type of the authentication provider that this credential will be used to authenticate with.

    Declaration

    Swift

    static var providerType: StitchProviderType { get }
  • The contents of this credential as they will be passed to the Stitch server.

    Declaration

    Swift

    var material: Document { get }
  • A ProviderCapabilities struct describing the behavior of this credential when logging in.

    Declaration

    Swift

    var providerCapabilities: ProviderCapabilities { get }