Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid scheme #62

Closed
chriscoderdr opened this issue Sep 24, 2021 · 2 comments
Closed

Invalid scheme #62

chriscoderdr opened this issue Sep 24, 2021 · 2 comments

Comments

@chriscoderdr
Copy link

chriscoderdr commented Sep 24, 2021

unnamed

So I'm using version 6

pod 'GoogleSignIn', '~> 6.0'

it opens the dialog for authentication but says invalid scheme

my code is as following:

let signInConfig = GIDConfiguration.init(clientID: "MY_REVERSE_ID");
GIDSignIn.sharedInstance.signIn(with: signInConfig, presenting: visibleViewCtrl) { user, error in
                guard error == nil else { return }
        
                // If sign in succeeded, display the app's main content View.
            }
        }

I'm not getting any error in the Xcode console.

@petea
Copy link
Contributor

petea commented Sep 24, 2021

It looks like you may be providing GIDConfiguration with your dot-reversed client ID here when it's expecting the normal client ID value. The dot-reversed client ID value should only be used when defining the custom URL scheme in your project config.

@chriscoderdr
Copy link
Author

Indeed, thanks @petea

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants