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

android sample app logs INVALID_CERT_HASH when trying to log-in via Apple #72

Open
shalva97 opened this issue Dec 2, 2024 · 3 comments

Comments

@shalva97
Copy link

shalva97 commented Dec 2, 2024

Logs:

getRecentTasks: taskId=1234   userId=0   baseIntent=Intent { act=android.intent.action.MAIN flag=268435456 cmp=ComponentInfo{com.mmk.kmpauth.sample/com.mmk.kmpauth.sample.MainActivity} }
[GetAuthDomainTask] Error getting project config. Failed with INVALID_CERT_HASH 400
Error Result: There was an error while trying to get your package certificate hash.

Not sure what cert it shows error for. Similar error in my app [GetAuthDomainTask] Error getting project config. Failed with INVALID_CERT_HASH 400

@shalva97
Copy link
Author

shalva97 commented Dec 2, 2024

okay so my guess here is that sample app was signed by the key which is not included in repo, so when I try to log in it shows cert error. but the it is very strange that it works with Google sign in

@shalva97 shalva97 changed the title android sample app logs INVALID_CERT_HASH android sample app logs INVALID_CERT_HASH when trying to log-in via Apple Dec 2, 2024
@shalva97
Copy link
Author

shalva97 commented Dec 2, 2024

solved it by adding cert hash in Firebase Project Settings > General > Your Apps > SHA certificate fingerprints

cert hash can befound by gradle signingreport

@shalva97 shalva97 closed this as completed Dec 2, 2024
@shalva97
Copy link
Author

shalva97 commented Dec 2, 2024

I weill keep this open since Apple login fails in the sample app...

@shalva97 shalva97 reopened this Dec 2, 2024
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

1 participant