Skip to content

Commit a54f895

Browse files
committed
docs: use Yarn v4.13.0, update docusaurus and colors
1 parent 3cb1d1d commit a54f895

12 files changed

Lines changed: 1779 additions & 1488 deletions

File tree

.yarn/releases/yarn-4.13.0.cjs

Lines changed: 940 additions & 0 deletions
Large diffs are not rendered by default.

.yarn/releases/yarn-4.9.2.cjs

Lines changed: 0 additions & 942 deletions
This file was deleted.

.yarnrc.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
nodeLinker: node-modules
22

3-
yarnPath: .yarn/releases/yarn-4.9.2.cjs
3+
yarnPath: .yarn/releases/yarn-4.13.0.cjs
4+
npmMinimalAgeGate: "1d"

docs/install.mdx

Lines changed: 41 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Why paid? According to the [State of React Native Survey](https://results.2024.s
1111

1212
[//]: # '🌟'
1313

14-
### Universal Sign In (premium) {#premium}
14+
### Universal Sign In (premium) {/* #premium */}
1515

1616
⭐️ **Key Features**:
1717

@@ -47,7 +47,7 @@ Available on the public npm registry, this version:
4747

4848
> To migrate from the public version to the premium one, follow the [migration guide](migrating#migrating-from-original-to-universal-sign-in).
4949
50-
## Accessing the private npm package {#package-manager-setup}
50+
## Accessing the private npm package {/* #package-manager-setup */}
5151

5252
The private npm package is like any other, but it's hosted on the [GitHub npm packages registry](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-npm-registry), not the public npm registry. Therefore, a small bit of setup is needed:
5353

@@ -82,15 +82,37 @@ npmScopes:
8282
```
8383

8484
</TabItem>
85+
86+
<TabItem value="pnpm" label="pnpm">
87+
create a `.npmrc` file in your project root with the following content (pnpm respects `.npmrc`):
88+
89+
```txt title=".npmrc"
90+
//npm.pkg.github.com/:_authToken=${NPM_TOKEN_GOOGLE_SIGN_IN}
91+
92+
@react-native-google-signin:registry=https://npm.pkg.github.com/
93+
```
94+
95+
</TabItem>
96+
97+
<TabItem value="bun" label="bun">
98+
create a `bunfig.toml` file in your project root with the following content:
99+
100+
```toml title="bunfig.toml"
101+
[install.scopes]
102+
"@react-native-google-signin" = { url = "https://npm.pkg.github.com/", token = "$NPM_TOKEN_GOOGLE_SIGN_IN" }
103+
```
104+
105+
Alternatively, [bun also reads `.npmrc` files](https://bun.sh/docs/pm/npmrc#configure-options-for-a-specific-registry), so the npm setup above works too.
106+
107+
</TabItem>
108+
85109
<TabItem value="CI" label="CI environments (GH Actions...)">
86110
CI environment setup is similar to the local one: you also need a `.npmrc` (or similar) file. Follow [this GitHub Actions example](https://gist.github.com/nandorojo/46b3e46de12177b9ad7e4d454310de21#file-private-npm-in-gh-actions-md) - other CI providers require very similar steps.
87111

88112
</TabItem>
89113

90114
</Tabs>
91115

92-
If you use another package manager ([such as Bun](https://bun.sh/docs/install/registries)), refer to its documentation for setting up a custom registry.
93-
94116
## Installing
95117

96118
<Tabs queryString="package-manager">
@@ -108,6 +130,20 @@ If you use another package manager ([such as Bun](https://bun.sh/docs/install/re
108130

109131
</TabItem>
110132

133+
<TabItem value="pnpm" label="pnpm">
134+
```bash
135+
pnpm add @react-native-google-signin/google-signin@latest
136+
```
137+
138+
</TabItem>
139+
140+
<TabItem value="bun" label="bun">
141+
```bash
142+
bun add @react-native-google-signin/google-signin@latest
143+
```
144+
145+
</TabItem>
146+
111147
</Tabs>
112148

113149
After installing: if you're using the Universal version, open the lockfile (`yarn.lock` / `package-lock.json`...) and verify that the package is fetched from the GitHub registry (the entry must point to `npm.pkg.github.com`, not `registry.npmjs.org`). If it does not, it means the package manager is not configured correctly — try uninstalling and reinstalling the package.
@@ -127,4 +163,4 @@ The latest version of the Universal Sign In package supports (use older versions
127163
| | supported range |
128164
| ------------ | --------------- |
129165
| expo | 52.0.40 - 55 |
130-
| react-native | 0.76.0 - 0.84 |
166+
| react-native | 0.76.0 - 0.85 |

docs/one-tap.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ signature: (`accessTokenString`: `string`) => `Promise`\<`null`\>
286286

287287
This method is only needed on Android. You may run into a `401 Unauthorized` error when an access token is invalid. Call this method to remove the token from local cache and then call `requestAuthorization()` to get a fresh access token. Calling this method on Apple does nothing and always resolves. This is because on Apple, `requestAuthorization()` always returns valid tokens, refreshing them first if they have expired or are about to expire (see [docs](https://developers.google.com/identity/sign-in/ios/reference/Classes/GIDGoogleUser#-refreshtokensifneededwithcompletion:)).
288288

289-
## Automatic `webClientId` & `iosClientId` detection {#automatic-config}
289+
## Automatic `webClientId` & `iosClientId` detection {/* #automatic-config */}
290290

291291
If you use Expo (with the config plugin and prebuild), or if you're using Firebase, you don't need to provide the `iosClientId` parameter to the `configure` method.
292292

docs/security.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ const getNonce = () => {
126126
</TabItem>
127127
</Tabs>
128128

129-
## App Check for iOS (advanced) {#appcheck}
129+
## App Check for iOS (advanced) {/* #appcheck */}
130130

131131
App Check helps protect your apps from abuse by preventing unauthorized clients from authenticating using Google Sign-in: only the apps you've authorized can acquire access tokens and ID tokens from Google's OAuth 2.0 and OpenID Connect endpoint.
132132

docs/setting-up/get-config-file.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ import Tabs from '@theme/Tabs';
3838
import TabItem from '@theme/TabItem';
3939

4040
<Tabs>
41-
<TabItem value="config-doctor" label="A device or any APK file" default>
41+
<TabItem value="config-doctor" label="✅ Any APK or device" default>
4242

43-
Use the [Configuration Doctor](../config-doctor). (Requires an [Universal sign in](/docs/install#premium) license.)
43+
Use the [Configuration Doctor](../config-doctor). This is the **only universal option** — it works regardless of how the APK was built or where it came from. The other tabs cover specific scenarios.
4444

4545
1. Get a device / emulator with the app installed, or get the APK (build it locally or in cloud, download from the Play Console / Play Store...)
4646
2. Run the tool and follow its instructions:
@@ -81,7 +81,7 @@ npx @react-native-google-signin/config-doctor
8181
<br />
8282
<br />
8383

84-
### Step 2: Add SHA-1 fingerprints to Firebase or Google Cloud Console {#step-2}
84+
### Step 2: Add SHA-1 fingerprints to Firebase or Google Cloud Console {/* #step-2 */}
8585

8686
For _each_ of the SHA-1 fingerprints obtained in the previous step, follow the instructions below.
8787

docs/troubleshooting.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ description: 'Common issues and solutions for Android (`DEVELOPER_ERROR`, cancel
88

99
## Android
1010

11-
### Sign in result is `cancelled` even though the user did not cancel the flow {#unexpected_cancelled}
11+
### Sign in result is `cancelled` even though the user did not cancel the flow {/_ #unexpected_cancelled _/}
1212

1313
You may be hitting an [error in the Android SDK](https://issuetracker.google.com/issues/424210681). This error is usually observed with `presentExplicitSignIn`. Follow the [`DEVELOPER_ERROR paragraph`](#developer_error) to resolve it.
1414

1515
### Login does not work when downloading from the Play Store.
1616

1717
See [`DEVELOPER_ERROR` paragraph](#developer_error).
1818

19-
### `DEVELOPER_ERROR` or `code: 10` or `Developer console is not set up correctly` error message {#developer_error}
19+
### `DEVELOPER_ERROR` or `code: 10` or `Developer console is not set up correctly` error message {/_ #developer_error _/}
2020

2121
This is always (! _absolutely always_ !) a configuration mismatch between your app and the server-side setup (in Firebase or Google Cloud console).
2222

docusaurus.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const llmsExcludeRoutes = [
1515
const config: Config = {
1616
future: {
1717
v4: true,
18-
experimental_faster: true,
18+
faster: true,
1919
},
2020
title: 'React Native Google Sign In',
2121
tagline: 'Google sign in for Expo and React Native apps',

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
"prettier:check": "prettier --list-different 'docs/**/*.{md,mdx}'"
1818
},
1919
"dependencies": {
20-
"@docusaurus/core": "^3.9.2",
21-
"@docusaurus/plugin-ideal-image": "^3.9.2",
22-
"@docusaurus/preset-classic": "^3.9.2",
20+
"@docusaurus/core": "^3.10.0",
21+
"@docusaurus/plugin-ideal-image": "^3.10.0",
22+
"@docusaurus/preset-classic": "^3.10.0",
2323
"@mdx-js/react": "^3.1.1",
2424
"clsx": "^2.1.1",
2525
"docusaurus-lunr-search": "^3.6.1",
@@ -28,18 +28,18 @@
2828
"react-dom": "^19.2.4"
2929
},
3030
"devDependencies": {
31-
"@docusaurus/faster": "^3.9.2",
32-
"@docusaurus/module-type-aliases": "^3.9.2",
33-
"@docusaurus/tsconfig": "^3.9.2",
34-
"@docusaurus/types": "^3.9.2",
31+
"@docusaurus/faster": "^3.10.0",
32+
"@docusaurus/module-type-aliases": "^3.10.0",
33+
"@docusaurus/tsconfig": "^3.10.0",
34+
"@docusaurus/types": "^3.10.0",
3535
"@signalwire/docusaurus-plugin-llms-txt": "^2.0.0-alpha.7",
3636
"@signalwire/docusaurus-theme-llms-txt": "1.0.0-alpha.9",
3737
"@types/react": "^19.2.14",
3838
"docusaurus-plugin-typedoc": "^1.4.2",
3939
"prettier": "^3.8.1",
40-
"typedoc": "^0.28.17",
41-
"typedoc-plugin-markdown": "^4.10.0",
42-
"typescript": "~5.9.3"
40+
"typedoc": "^0.28.18",
41+
"typedoc-plugin-markdown": "^4.11.0",
42+
"typescript": "~6.0.2"
4343
},
4444
"browserslist": {
4545
"production": [
@@ -56,5 +56,5 @@
5656
"engines": {
5757
"node": ">=20.0"
5858
},
59-
"packageManager": "yarn@4.9.2"
59+
"packageManager": "yarn@4.13.0"
6060
}

0 commit comments

Comments
 (0)