Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion docs/errors.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
sidebar_position: 60
description: 'Error handling guide. Covers `isErrorWithCode` helper, error codes (`SIGN_IN_CANCELLED`, `NO_SAVED_CREDENTIAL_FOUND`, `PLAY_SERVICES_NOT_AVAILABLE`, etc.), and best practices.'
description: 'Error handling guide. Covers `isErrorWithCode` helper, error codes (`SIGN_IN_CANCELLED`, `PLAY_SERVICES_NOT_AVAILABLE`, etc.), and best practices.'
---

# Error handling
Expand Down
6 changes: 4 additions & 2 deletions docs/install.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ description: 'Install `@react-native-google-signin/google-signin`. Covers paid (

# Installation

> We recommend [Expo](https://expo.dev) and [EAS](https://expo.dev/eas) for building and deploying your React Native app. Expo offers the best developer experience and is well-supported by this library.

The recommended option is [Universal Sign In](https://universal-sign-in.com) (paid). A free legacy version is also available — see [below](#public-version-free) for the differences. If you are an EAS customer, you may be able to access the paid version for free, [learn more](https://forms.gle/tpP7TfUGW1CwgaEZ8).

Why paid? According to the [State of React Native Survey](https://results.2024.stateofreactnative.com/en-US/opinions/#opinions_pain_points_multiple), unmaintained packages are **the #1 pain point** of the React Native ecosystem. Your purchase enables the module to be rock-solid, and contributions to upstream SDKs such as [1](https://github.com/openid/AppAuth-iOS/pull/788), [2](https://github.com/google/GoogleSignIn-iOS/pull/402), [3](https://github.com/googlesamples/google-services/issues/426), [4](https://github.com/google/GoogleSignIn-iOS/issues/457), [5](https://issuetracker.google.com/issues/424210681), [6](https://issuetracker.google.com/issues/474817166).
Expand Down Expand Up @@ -162,5 +164,5 @@ The latest version of the Universal Sign In package supports (use older versions

| | supported range |
| ------------ | --------------- |
| expo | 52.0.40 - 55 |
| react-native | 0.76.0 - 0.85 |
| expo | 52.0.40 - 56 |
| react-native | 0.76.0 - 0.86 |
8 changes: 4 additions & 4 deletions docs/migrating.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ const signIn = async () => {
- case statusCodes.SIGN_IN_CANCELLED:
- // sign in was cancelled
- break;
case statusCodes.ONE_TAP_START_FAILED:
// Android-only, you probably have hit rate limiting.
// On Android, you can still call `presentExplicitSignIn` in this case.
break;
- case statusCodes.ONE_TAP_START_FAILED:
- // Android-only, you probably have hit rate limiting.
- // On Android, you can still call `presentExplicitSignIn` in this case.
- break;
case statusCodes.PLAY_SERVICES_NOT_AVAILABLE:
// Android-only: play services not available or outdated
// Web: when calling an unimplemented api (requestAuthorization)
Expand Down
6 changes: 1 addition & 5 deletions docs/one-tap.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import {

<GoogleLogoButton onPress={startSignInFlow} label="Sign in with Google" />;

const startSignInFlow = async () => {
export const startSignInFlow = async () => {
try {
GoogleOneTapSignIn.configure(); // move this to after your app starts
await GoogleOneTapSignIn.checkPlayServices();
Expand Down Expand Up @@ -129,10 +129,6 @@ const signIn = async () => {
console.error(error);
if (isErrorWithCode(error)) {
switch (error.code) {
case statusCodes.ONE_TAP_START_FAILED:
// Android-only, you probably have hit rate limiting.
// You can still call `presentExplicitSignIn` in this case.
break;
case statusCodes.PLAY_SERVICES_NOT_AVAILABLE:
// Android: play services not available or outdated.
// Get more details from `error.userInfo`.
Expand Down
6 changes: 2 additions & 4 deletions src/pages/examples.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
# Examples

The Web example is [here](https://github.com/react-native-google-signin/google-signin-next/tree/main/web-example).

The native example (iOS, Android, macOS) is [here](https://github.com/react-native-google-signin/google-signin-next/tree/main/example).
The example app — covering iOS, Android, and web in a single Expo app — is [here](https://github.com/react-native-google-signin/google-signin-next/tree/main/example).

:::note
The above links are accessible only with the paid version. There is an old example [here](https://github.com/react-native-google-signin/google-signin/tree/master/example).
The above link is accessible only with the paid version. There is an old example [here](https://github.com/react-native-google-signin/google-signin/tree/master/example).
:::

Documentation sources repo is located [here](https://github.com/react-native-google-signin/docs).