Skip to content

Commit

Permalink
Merge pull request #4 from ZhanatM/fix-dismissing-safari-view-controller
Browse files Browse the repository at this point in the history
release safariViewDelegate after auto dismissing view
  • Loading branch information
ZhanatM authored Nov 18, 2021
2 parents b0c7146 + e0410c0 commit 3ef4088
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/iOS/OAuth2Authorizer+iOS.swift
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ open class OAuth2Authorizer: OAuth2AuthorizerUI {
let web = try authorizeSafariEmbedded(from: controller, at: url)
if config.authorizeEmbeddedAutoDismiss {
oauth2.internalAfterAuthorizeOrFail = { wasFailure, error in
web.dismiss(animated: true)
self.safariViewDelegate = nil
web.dismiss(animated: false)
}
}
}
Expand Down

0 comments on commit 3ef4088

Please sign in to comment.