Skip to content

Commit 500bcb7

Browse files
Adam Nomanoffmikehardy
andauthored
docs(auth, phone): note 'SHA-256' key is needed in most cases (#5767)
* Including 'SHA-256' key for Firebase Phone Auth When adding firebase phone auth, I had to include 'SHA1' and also 'SHA-256' keys to my android app on the Firebase console. Please refer to this Stackoverflow question: https://stackoverflow.com/questions/46751766/this-app-is-not-authorized-to-use-firebase-authentication-please-verify-that-the I thought to include that information on the docs. Thank you. * style(lint, android): result of `yarn lint:android` apparently an import was left in place after removing phone auth collision handling Co-authored-by: Mike Hardy <[email protected]>
1 parent d67c3b9 commit 500bcb7

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.spellcheck.dict.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ SDKs.
145145
serverless
146146
setBackgroundMessageHandler
147147
SHA1
148+
SHA
148149
SHA-256
149150
SIGABRT
150151
signInTester

docs/index.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,9 @@ local projects package name which can be found inside of the `manifest` tag with
4545
file within your project.
4646

4747
> The debug signing certificate is optional to use Firebase with your app, but is required for Dynamic Links, Invites and Phone Authentication.
48-
> To generate a certificate run `cd android && ./gradlew signingReport` and copy the SHA1 from the `debug` key. This generates two variant keys.
49-
> You can copy the 'SHA1' that belongs to the `debugAndroidTest` variant key option.
48+
> To generate a certificate run `cd android && ./gradlew signingReport`. This generates two variant keys.
49+
> You have to copy both 'SHA1' and 'SHA-256' keys that belong to the 'debugAndroidTest' variant key option.
50+
> Then, you can add those keys to the 'SHA certificate fingerprints' on your app in Firebase console.
5051
5152
Download the `google-services.json` file and place it inside of your project at the following location: `/android/app/google-services.json`.
5253

packages/auth/android/src/main/java/io/invertase/firebase/auth/ReactNativeFirebaseAuthModule.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
import com.google.firebase.auth.FirebaseAuthInvalidCredentialsException;
4545
import com.google.firebase.auth.FirebaseAuthProvider;
4646
import com.google.firebase.auth.FirebaseAuthSettings;
47-
import com.google.firebase.auth.FirebaseAuthUserCollisionException;
4847
import com.google.firebase.auth.FirebaseUser;
4948
import com.google.firebase.auth.FirebaseUserMetadata;
5049
import com.google.firebase.auth.GetTokenResult;

0 commit comments

Comments
 (0)