I am developing an enterprise application for one of our clients using the GoogleSignIn SDK to log in.
During development, I was surprised to see that support for SFSafariViewController was added, which I could simplify my login process by sharing Safari cookies.
This was great until the client raised a critical problem: when a user logs into the application (via Google and SFSafariViewController ), they can exit our application (including the GoogleSignIn SDK (see below))
func signOut() { ... let signIn = GIDSignIn.sharedInstance() signIn.signOut() }
However, the user remains signed into their Google account through Safari. Something that would be extremely useful on a personal device, but I was informed that 20 users on one site can use one device.
I looked at setting allowsSignInWithBrowser and / or allowsSignInWithWebView to false , but I canβt get it so that the SDK uses only the web view (for example, UIWebView or WKWebView ), where we can guarantee that the credentials will be saved only in the application.
Is there such an opportunity to achieve this goal that I am missing? I think that in some cases it can be very important that such a configuration is available.
source share