googlecodelabs / photos-sharing

Code for the "Build a Photo Sharing app with Google Photos and Flutter" codelab
Apache License 2.0
98 stars 76 forks source link

Google SignIn Error #7

Closed Kyaw-Zin-Thant closed 4 years ago

Kyaw-Zin-Thant commented 5 years ago

PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 10: , null). I found this errors . Please help me how can I solve this?

squillace91 commented 5 years ago

mine is saying restricted_client. 403 error when trying to log in.. saying I haven't configured Oauth consent, but it has been configured just like the codelabs says

jfschmakeit commented 5 years ago

This error usually indicates an issue with your Google Developers project or Google Sign-In configuration.

Did you visit the OAuth consent screen and add your email address and the Library API scopes? (The email address is required at this step.) You will also need to select an email address for "support" on this screen. Make sure to select 'save' before continuing.

Also make sure that you are configuring access for the same Developers project that you used with Firebase in the earlier step to download the google-services.json.

This error could also indicate that you have not set up the SHA-1 signing key for your certificate correctly. You should double check that the package name and the signing certificate SHA-1 have been correctly entered into the Firebase console.

Unfortunately this is a little tricky to debug, but hopefully this will give you a pointer in the right direction. Please let us know if these pointers helped.

carlzimmerman commented 5 years ago

It says in the dev console that use of this API scope will be restricted until it is approved.

jfschmakeit commented 4 years ago

We have just added a new "troubleshooting sign in" section to step 4 in the codelab. This should hopefully help if anyone gets stuck at this step.

If you have encountered any other issues at this step that aren't covered in this section, please do file a new issue and we can expand it. Thanks!