diff --git a/Source/SwiftyDropbox/Platform/SwiftyDropbox_iOS/OAuthMobile.swift b/Source/SwiftyDropbox/Platform/SwiftyDropbox_iOS/OAuthMobile.swift index 7e3f0e4d..feb785be 100644 --- a/Source/SwiftyDropbox/Platform/SwiftyDropbox_iOS/OAuthMobile.swift +++ b/Source/SwiftyDropbox/Platform/SwiftyDropbox_iOS/OAuthMobile.swift @@ -670,6 +670,7 @@ public class MobileSafariViewController: SFSafariViewController, SFSafariViewCon public func safariViewController(_ controller: SFSafariViewController, didCompleteInitialLoad didLoadSuccessfully: Bool) { if !didLoadSuccessfully { controller.dismiss(animated: true, completion: nil) + cancelHandler() } }