SSO on native iOS apps
Inside WKWebView, inject the SSO token via evaluateJavaScript once the page has loaded. Use a WKScriptMessageHandler to detect the Comments initialized! console message.
func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!) { webView.evaluateJavaScript("vuukleLogin('\(ssoTokenFromYourBackend)')", completionHandler: nil)}Logging out
webView.evaluateJavaScript("vuukleLogout()", completionHandler: nil)// Clear cookies for cdn.vuukle.com afterwards.Related
Was this page helpful?
Help us improve — drop a note or open the dashboard.