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
935 changes: 0 additions & 935 deletions .yarn/releases/yarn-4.7.0.cjs

This file was deleted.

942 changes: 942 additions & 0 deletions .yarn/releases/yarn-4.9.2.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.7.0.cjs
yarnPath: .yarn/releases/yarn-4.9.2.cjs
3 changes: 0 additions & 3 deletions babel.config.js

This file was deleted.

2 changes: 1 addition & 1 deletion docs/buttons/google-logo-button.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ sidebar_class_name: sponsor-heart

# GoogleLogoButton

A Google Sign-In button that follows Google's official branding guidelines. Intended for native apps.
A Google Sign-In button that follows Google's official branding guidelines. Intended for native apps. It renders null when used on the web.

import Banner from '../_sponsorBanner.mdx';

Expand Down
2 changes: 1 addition & 1 deletion docs/buttons/web.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ As the Universal sign in Guide explains, there are two ways to sign in on the we

One-tap UI may not always be available: This happens if user has [opted out](https://developers.google.com/identity/gsi/web/guides/features#globally_opt_out) or when they close the dialog several times in a row, entering the [cooldown period](https://developers.google.com/identity/gsi/web/guides/features#exponential_cooldown).

The Google Sign-In button serves as a fallback. Tapping it will open the regular Google Sign-In dialog.
The Google Sign-In button serves as a fallback. Tapping it opens the regular Google Sign-In dialog.

```tsx
import { WebGoogleSigninButton } from '@react-native-google-signin/google-signin';
Expand Down
10 changes: 5 additions & 5 deletions docs/errors.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ try {
import { statusCodes } from '@react-native-google-signin/google-signin';
```

Status codes are useful when determining which kind of error has occurred during the sign-in process. Under the hood, these constants are derived from native GoogleSignIn error codes and are platform-specific. Always compare `error.code` to `statusCodes.*` and do not rely on the raw value of `error.code`.
Status codes are useful when determining which kind of error has occurred during the sign-in process. Under the hood, these constants are derived from native error codes and are platform-specific. Always compare `error.code` to `statusCodes.*` and do not rely on the raw value of `error.code`.

See [example usage](one-tap#signin).

| Name | Description |
| ----------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `IN_PROGRESS` | Trying to invoke another operation (e.g. `signInSilently`) when previous one has not yet finished. If you call e.g. `signInSilently` twice, two calls to `signInSilently` in the native module will be done. The promise from the first call to `signInSilently` will be rejected with this error, and the second will resolve / reject with the result of the native call. |
| `PLAY_SERVICES_NOT_AVAILABLE` | Play services are not available or outdated. This happens on Android, or on the web when you're calling the exposed APIs [before the Client library is loaded](setting-up/web). |
| Name | Description |
| ----------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `IN_PROGRESS` | Trying to invoke another operation (e.g. `signInSilently`) when previous one has not yet finished. If you call e.g. `signInSilently` twice, two calls to `signInSilently` in the native module are done. The promise from the first call to `signInSilently` will be rejected with this error, and the second will resolve / reject with the result of the native call. |
| `PLAY_SERVICES_NOT_AVAILABLE` | Play services are not available or outdated. This happens on Android, or on the web when you're calling the exposed APIs [before the Client library is loaded](setting-up/web). |

### Status codes specific to Universal sign in {#universal-status-codes}

Expand Down
1 change: 0 additions & 1 deletion docs/install.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ Why paid? According to the [State of React Native Survey](https://results.2024.s
⭐️ **Key Features**:

- **Cross-Platform**: Unified APIs which work on **Android**, **iOS**, **Web**, and **macOS**.

- Android: Built with [Credential Manager library](https://developers.google.com/identity/android-credential-manager)
- Web: Uses [Sign In with Google for Web](https://developers.google.com/identity/gsi/web/guides/features)
- iOS & macOS: Powered by the [Google Sign-In SDK](https://developers.google.com/identity/sign-in/ios/start)
Expand Down
5 changes: 3 additions & 2 deletions docs/integration-notes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
sidebar_position: 55
sidebar_position: 61
---

# Integration notes
Expand All @@ -18,6 +18,7 @@ sidebar_position: 55

The default requested scopes are `email` and `profile`.

If you want to manage other data from your application (for example access user agenda or upload a file to drive) you need to request additional permissions. This can be accomplished by adding the necessary scopes when configuring the GoogleSignin instance.
If you want to manage other data from your application (for example, access user agenda or upload a file to drive) you need to request additional permissions. This can be accomplished by calling [`requestAuthorization`](one-tap#requestauthorization) or by
adding the necessary scopes when calling [`configure`](one-tap#configure).

Visit https://developers.google.com/identity/protocols/googlescopes or https://developers.google.com/oauthplayground/ for a list of available scopes.
Loading