I am trying to get SFAuthenticationSession to work in a standalone message extension. When I run thepermission dialog flash and that is it. Will SFAuthenticationSession work in the extension?
Here is the code snipet:
let handler:SFAuthenticationSession.CompletionHandler = { (callBack:URL?, error:Error? ) in
guard error == nil, let successURL = callBack else {
return
}
let oauthToken = NSURLComponents(string: (successURL.absoluteString))?.queryItems?.filter({$0.name == "oauth_token"}).first
/
}
/
let authURL = NSURL(string: "https://www.coinbase.com.....
/
let authSession = SFAuthenticationSession(url: authURL as! URL, callbackURLScheme: nil, completionHandler: handler)
/
authSession.start()Any Help is appreciated