Skip to content

Commit c2346bc

Browse files
authored
Merge pull request #57 from Azure-Samples/oldalton/fix_sourceapp_handling
Fixed sourceApp handling on iOS 13
2 parents 2e8e8dc + 8650e95 commit c2346bc

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

MSALiOS/AppDelegate.swift

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
8787

8888
func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {
8989

90-
guard let sourceApplication = options[UIApplication.OpenURLOptionsKey.sourceApplication] as? String else {
91-
return false
92-
}
93-
94-
return MSALPublicClientApplication.handleMSALResponse(url, sourceApplication: sourceApplication)
90+
return MSALPublicClientApplication.handleMSALResponse(url, sourceApplication: options[UIApplication.OpenURLOptionsKey.sourceApplication] as? String)
9591
}
9692

9793

0 commit comments

Comments
 (0)