     
     // MARK: - Constants
     
-    static let errorDomain = "AuthenticatedSessionViewControllerFactoryErrorDomain"
-    
     // MARK: - Properties
     
     // MARK: Private

                        authenticationSession: MXAuthenticationSession,
                        onAuthenticated: @escaping ([String: Any]) -> Void,
                        onCancelled: @escaping () -> Void,
                        onFailure: @escaping (NSError) -> Void) -> UIViewController {
        
        // Use a simple UIAlertController as before
        let alertController = UIAlertController(title: title, message: message, preferredStyle: .alert)

            }
            
            guard let authParams = self.createAuthParams(password: password, authenticationSession: authenticationSession) else {
                onFailure(AuthenticatedSessionViewControllerFactoryError.flowNotSupported)
                return
            }
            
