Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/auth/social-auth.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ Install the package and its peer dependency:
yarn add react-native-nitro-google-signin react-native-nitro-modules
```

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.
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.
Comment thread
mikehardy marked this conversation as resolved.

#### Using Google Sign-In with Firebase

Expand Down Expand Up @@ -280,7 +280,7 @@ async function onGoogleButtonPress() {
throw new Error('Google Sign-In was cancelled or failed');
}

const { idToken } = response.data;
const idToken = response.data?.idToken;
if (!idToken) {
throw new Error('No ID token found');
}
Expand All @@ -294,7 +294,7 @@ Upon successful sign-in, any [`onAuthStateChanged`](/auth/usage#listening-to-aut

If you test on an Android emulator, use an image with **Google APIs** or **Google Play** system images.

Full API details: [react-native-nitro-google-signin documentation](https://react-native-nitro-google-signin.github.io/).
Full API details: [react-native-nitro-google-signin documentation](https://react-native-nitro-google-sign-in.github.io/).
Comment thread
mikehardy marked this conversation as resolved.

### @react-native-google-signin/google-signin

Expand Down Expand Up @@ -517,7 +517,7 @@ async function onGoogleLinkButtonPress() {
if (isNoSavedCredentialFoundResponse(response)) {
response = await GoogleOneTapSignIn.presentExplicitSignIn();
}
if (!isSuccessResponse(response) || !response.data.idToken) {
if (!isSuccessResponse(response) || !response.data?.idToken) {
throw new Error('Google Sign-In failed');
}

Expand Down
Loading