Warning: Undefined array key "pathway" in /home/clients/160b20c93964292618c158d21ce27bf5/sites/tech.org-services.ch/wp-content/themes/Newspaper/functions.php on line 543
Monday, December 5, 2022
HomeiOS Developmentxcode - Swift iOS GIDSignIn scopes should not auto chosen

xcode – Swift iOS GIDSignIn scopes should not auto chosen


iOS app utilizing GIDSignIn for o-Authentication.

We’re questioning why when the scopes are offered and never auto chosen

enter image description here

Our Consumer ID and app is verified in our google console and we do NOT present an unsafe app upon register.

Does this variation when the app is stay within the app retailer? We don’t perceive why we have now to pick the scope ourselves when in

func signInWithGoogle() {
        guard let clientID = FirebaseApp.app()?.choices.clientID else { return }

        // Create Google Signal In configuration object.
        let config = GIDConfiguration(clientID: clientID)
        
        print("Consumer ID: (clientID)")
        let additionalScopes = ["https://www.googleapis.com/auth/youtube.readonly", "https://www.googleapis.com/auth/yt-analytics.readonly"]
        
       
        // Begin the register movement! GIDSignIn
        GIDSignIn.sharedInstance.signIn(with: config, presenting: self, trace: nil, additionalScopes: additionalScopes) { [unowned self] person, error in
        

          if let error = error {
            // ...
            return
          }

}

GIDGoogleSignIn Framework Reference

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments