Open URL with Browser

Hi, Does anyone knows, if I can redirect a user to the broswer, to open authentication pages (ike Google, Facebook or other agents) instead of use the SDK and in-app browsers (like WKWebView/SFSafari)? I need to open a URL provided by backend services, but in ASWebAuthenticationSession I cant use the callbackScheme in the URL, it doesn't allow "/" and ":" symbols to close the moda. So, if I can, will my app be accepted by apple to publish on App Store? Or if I can't, how should I fix that problem? Thank you for your help.

You should use ASWebAuthenticationSession for this. That error about ":" and "/" is to catch a common misunderstanding about schemes: the "scheme" part of a URL does not include the trailing "://". For example, let's say was we had "myscheme://success?authToken=abc". The scheme of the URL would by "myscheme", which is the value that you would pass to ASWebAuthenticationSession.

You can see this yourself if you ran something like this in a playground:

let url = URL(string: "myscheme://success?authToken=abc")!
print(url.scheme!)
Open URL with Browser
 
 
Q