 
     // MARK: - Public
 
-    func start() -> Promise<AuthenticationSessionManagerResult> {
-        let promise = Promise<AuthenticationSessionManagerResult>()
+    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

                 }

                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: - Types

    enum Result {
        case success, cancel
    }

