简体   繁体   中英

This app is not authorized to use Firebase Authentication.Please verify that the correct package name and SHA-1 are configured in the Firebase

I have used FirebaseUI Auth to authenticate , Auth via email is working any other auth is not working . I have Enabled Auth options in Firebase

I have seen this This app is not authorized to use Firebase Authentication.Please verify that the correct package name and SHA-1 are configured in the Firebase Console but it didn't solves the problem Errors:

   E/Volley: [1404] BasicNetwork.performRequest: Unexpected response code 400 for https://www.googleapis.com/identitytoolkit/v3/relyingparty/sendVerificationCode?alt=proto&key=
2019-07-27 21:12:28.262 2809-11221/? W/FirebaseAuth: [PhoneVerificationSession] onFailure
2019-07-27 21:12:28.283 12142-12142/? E/AuthUI: A sign-in error occurred.
    com.google.firebase.auth.FirebaseAuthException: This app is not authorized to use Firebase Authentication. Please verify that the correct package name and SHA-1 are configured in the Firebase Console. [ App validation failed ]

Synced with Firebase tried manually even by both SHA1,SHA256 I have not uploaded to Play Store

I am in this doubt from almost one weeks and seached eveywhere , so i noted them all, Any Solution

使用cmd尝试此操作并像这样按sha键解决了我的相同问题

keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android 

如果您使用的是 React Native,请使用您的yourRNproject/android/appdebug.keystore生成 SHA1 并将其放入 firebase 控制台,在您的项目中下载google-services.json ,然后就可以了。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM