You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -84,7 +84,7 @@ with the new authentication state of the user.
84
84
Apple also requires that the app revoke the `Sign in with Apple` token when the user chooses to delete their account. This can be accomplished with the `revokeToken` API.
@@ -209,15 +209,13 @@ with the new authentication state of the user.
209
209
The [`google-signin`](https://github.com/react-native-google-signin/google-signin) library provides a wrapper around the official Google login library,
210
210
allowing you to create a credential and sign-in to Firebase.
211
211
212
-
Ensure the "Google" sign-in provider is enabled on the [Firebase Console](https://console.firebase.google.com/project/_/authentication/providers).
213
-
214
-
### Configure an Expo project
215
-
216
-
For Expo projects, follow [the setup instructions for Expo](https://react-native-google-signin.github.io/docs/category/setting-up) from `react-native-google-signin`.
212
+
Most configuration is already setup when using Google Sign-In with Firebase, however you need to ensure your machines
213
+
SHA1 key has been configured for use with Android. You can see how to generate the key on the [Getting Started](/)
214
+
documentation.
217
215
218
-
### Configure a React-Native (non-Expo) project
216
+
Ensure the "Google" sign-in provider is enabled on the [Firebase Console](https://console.firebase.google.com/project/_/authentication/providers).
219
217
220
-
For bare React-Native projects, most configuration is already setup when using Google Sign-In with React-Native-Firebase's configuration, however you need to ensure your machines SHA1 key has been configured for use with Android. You can see how to generate the key on the [Getting Started](/) documentation.
218
+
Follow [these](https://github.com/react-native-google-signin/google-signin#project-setup-and-initialization) instructions to install and setup `google-signin`
221
219
222
220
Before triggering a sign-in request, you must initialize the Google SDK using your any required scopes and the
223
221
`webClientId`, which can be found in the `android/app/google-services.json` file as the `client/oauth_client/client_id` property (the id ends with `.apps.googleusercontent.com`). Make sure to pick the `client_id` with `client_type: 3`
@@ -230,11 +228,10 @@ GoogleSignin.configure({
230
228
});
231
229
```
232
230
233
-
### Using Google Sign-In
234
-
235
231
Once initialized, setup your application to trigger a sign-in request with Google using the `signIn` method.
236
232
237
233
```jsx
234
+
importReactfrom'react';
238
235
import { Button } from'react-native';
239
236
240
237
functionGoogleSignIn() {
@@ -250,7 +247,7 @@ function GoogleSignIn() {
250
247
The `onGoogleButtonPress` can then be implemented as follows:
0 commit comments