AuthenticationErrorReason

public enum AuthenticationErrorReason

The possible underlying reasons an .authenticationError error occurs.

  • failedToAuthenticate: Failed to authenticate with remote server.
  • Failed to authenticate with remote server.

    Declaration

    Swift

    case failedToAuthenticate
  • Thrown if the Ditto instance was initialized with connect set to .server(url:) while expirationHandler is nil. For sync to work with server connections, Ditto requires (a) a DittoAuthenticationExpirationHandler to be set via ditto.auth.expirationHandler, and (b) that handler to properly authenticate when requested.

    Declaration

    Swift

    case expirationHandlerMissing(message: String)