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
docs(auth): add Credential Manager Google Sign-In support and safety guards (#9037)
* docs(auth): document free Credential Manager Google Sign-In via react-native
* docs(auth): guard currentUser before linkWithCredential in Google examples
* docs(auth): correct links for react-native-nitro-google-sign-in documentation
* use optional chaining to guard against result.data possibly being undefined
---------
Co-authored-by: Mike Hardy <github@mikehardy.net>
Then follow the [installation](https://react-native-nitro-google-signin.github.io/docs/getting-started/installation) and [Google Cloud setup](https://react-native-nitro-google-signin.github.io/docs/setup/google-cloud) guides. For Expo, use a [development build](https://docs.expo.dev/develop/development-builds/introduction/) and the [Expo config plugin](https://react-native-nitro-google-signin.github.io/docs/setup/expo) — it does not run in Expo Go.
232
+
Then follow the [installation](https://react-native-nitro-google-sign-in.github.io/docs/getting-started/installation) and [Google Cloud setup](https://react-native-nitro-google-sign-in.github.io/docs/setup/google-cloud) guides. For Expo, use a [development build](https://docs.expo.dev/develop/development-builds/introduction/) and the [Expo config plugin](https://react-native-nitro-google-sign-in.github.io/docs/setup/expo) — it does not run in Expo Go.
233
233
234
234
#### Using Google Sign-In with Firebase
235
235
@@ -280,7 +280,7 @@ async function onGoogleButtonPress() {
280
280
thrownewError('Google Sign-In was cancelled or failed');
281
281
}
282
282
283
-
const{ idToken} =response.data;
283
+
constidToken=response.data?.idToken;
284
284
if (!idToken) {
285
285
thrownewError('No ID token found');
286
286
}
@@ -294,7 +294,7 @@ Upon successful sign-in, any [`onAuthStateChanged`](/auth/usage#listening-to-aut
294
294
295
295
If you test on an Android emulator, use an image with **Google APIs** or **Google Play** system images.
296
296
297
-
Full API details: [react-native-nitro-google-signin documentation](https://react-native-nitro-google-signin.github.io/).
297
+
Full API details: [react-native-nitro-google-signin documentation](https://react-native-nitro-google-sign-in.github.io/).
298
298
299
299
### @react-native-google-signin/google-signin
300
300
@@ -517,7 +517,7 @@ async function onGoogleLinkButtonPress() {
0 commit comments