Skip to content

Commit 29c2eac

Browse files
authored
Set oauth2 instance in webviewcontroller so that debug logging statements can work (p2#350)
Authored by @bappelt
1 parent 7e00f2d commit 29c2eac

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/macOS/OAuth2Authorizer+macOS.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ open class OAuth2Authorizer: OAuth2AuthorizerUI {
150150
@available(macOS 10.10, *)
151151
open func presentableAuthorizeViewController(at url: URL) throws -> OAuth2WebViewController {
152152
let controller = OAuth2WebViewController()
153+
controller.oauth = oauth2
153154
controller.startURL = url
154155
controller.interceptURLString = oauth2.redirect!
155156
controller.onIntercept = { url in

0 commit comments

Comments
 (0)