Skip to content

Commit

Permalink
Make MobileAuthorizationClient the default authorization client.
Browse files Browse the repository at this point in the history
  • Loading branch information
tcobbs-bentley committed Aug 19, 2021
1 parent 3d49806 commit 633d6b6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Sources/ITwinMobile/ITMApplication.swift
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,10 @@ open class ITMApplication: NSObject, WKUIDelegate, WKNavigationDelegate {
}

open func getAuthClient() -> AuthorizationClient? {
return nil
guard let viewController = ITMApplication.topViewController else {
return nil
}
return MobileAuthorizationClient(viewController: viewController)
}

open func loadBackend(_ allowInspectBackend: Bool) {
Expand Down

0 comments on commit 633d6b6

Please sign in to comment.