Skip to content

Instantly share code, notes, and snippets.

@yuchung-chuang
Created April 25, 2020 22:16
Show Gist options
  • Save yuchung-chuang/1364da0838c460a62491ead72c007b24 to your computer and use it in GitHub Desktop.
Save yuchung-chuang/1364da0838c460a62491ead72c007b24 to your computer and use it in GitHub Desktop.
For authentication
import MSAL
func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {
guard let sourceApplication = options[UIApplication.OpenURLOptionsKey.sourceApplication] as? String else {
return false
}
return MSALPublicClientApplication.handleMSALResponse(url, sourceApplication: sourceApplication)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment