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
connectset to.server(url:)whileexpirationHandlerisnil. For sync to work with server connections, Ditto requires (a) aDittoAuthenticationExpirationHandlerto be set viaditto.auth.expirationHandler, and (b) that handler to properly authenticate when requested.Declaration
Swift
case expirationHandlerMissing(message: String)