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

Error with signin with google #90

Closed
carvalho2707 opened this issue Jul 13, 2024 · 9 comments
Closed

Error with signin with google #90

carvalho2707 opened this issue Jul 13, 2024 · 9 comments

Comments

@carvalho2707
Copy link

When trying a very basic sample with credential manager to login with google button I'm getting :

androidx.credentials.exceptions.GetCredentialCancellationException: [16] Account reauth failed

@xxxape
Copy link

xxxape commented Jul 25, 2024

I met the same problem. Have you fixed that?

@carvalho2707
Copy link
Author

Unfortunately no, but if you find something let us know

@diegoyac
Copy link

Same here, haven't figured it out yet.

@MrMak21
Copy link

MrMak21 commented Jul 31, 2024

Same problem here. https://stackoverflow.com/questions/78813631/android-credentials-google-sign-in-error-16-account-reauth-failed
In my case the same exact credentials in a test project works fine. But in the project i want to itnegrate i does not work at all

@MrMak21
Copy link

MrMak21 commented Jul 31, 2024

I found the root of cause.
Because my project contains a lot of modules, i accidentaly provided the wrong SHA-1 (of another module) in the google credentials.

It is not clear form the error that google provide us, but please make sure that you provide the correct SHA-1

@xxxape
Copy link

xxxape commented Aug 1, 2024

@MrMak21 Same with you. I uploaded wrong SHA-1 in the firebase console too. It's all good after providing the correct one.

@sembozdemir
Copy link

I had the same error and my SHA-1 was correct. The problem was that the scope settings for OAuth Consent Screen was Internal. That means Google Sign-in features is restricted to your Google Workplace accounts only. Make sure you set it to External so that users can use any Google account.

@niharika2810
Copy link
Contributor

Thanks everyone for ongoing communciation here for resolution, looks like a few of you had SHA1 issue on your end. Closing, feel free to reopen if there is anything.

@ahudson20
Copy link

Was having the same error when using GetSignInWithGoogleOption. By default the app build.gradle uses .debug as an applicationIdSuffix so you will need to append .debug at the end of your package name when creating the android client ID.

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

7 participants