 
     // MARK: - Types
 
-    enum AuthenticationSessionManagerResult {
+    enum Result {
         case success, cancel
     }
 

                 }

                if returnUrlString == self.manifest.successUrl {
                    promise.fullfill(with: Result.success(AuthenticationSessionManagerResult.success))
                } else if returnUrlString == self.manifest.cancelUrl {
                    promise.fullfill(with: Result.success(AuthenticationSessionManagerResult.cancel))
                } else {
                    promise.reject(with: ConnectionsSheetError.unknown(debugDescription: "Unknown return URL"))
                }


    // MARK: - Public

    func start() -> Promise<AuthenticationSessionManager.Result> {
        let promise = Promise<AuthenticationSessionManager.Result>()
        guard let url = URL(string: manifest.hostedAuthUrl) else {
            promise.reject(with: ConnectionsSheetError.unknown(debugDescription: "Malformed URL"))
            return promise
