Skip to content

docs(auth): document free Credential Manager Google Sign-In via react-native#9033

Merged
mikehardy merged 2 commits into
invertase:mainfrom
rutvik24:docs/auth-google-credential-manager-nitro
Jun 2, 2026
Merged

docs(auth): document free Credential Manager Google Sign-In via react-native#9033
mikehardy merged 2 commits into
invertase:mainfrom
rutvik24:docs/auth-google-credential-manager-nitro

Conversation

@rutvik24

@rutvik24 rutvik24 commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Documents react-native-nitro-google-signin as a free (MIT) way to use Google’s latest Android Credential Manager Sign in with Google flow with React Native Firebase, including full Firebase signInWithCredential / linkWithCredential examples.
  • Clarifies that @react-native-google-signin/google-signin only gets Credential Manager through the paid Universal Sign-In tier; the free public GoogleSignin API still uses the legacy Android SDK (deprecated, no Credential Manager).
  • Adds a comparison table, Expo guidance (development build + Expo config plugin), and a cross-link from auth usage docs for revokeAccess().

Why

Google recommends Credential Manager for Sign in with Google on Android. Many RN Firebase apps already use @react-native-google-signin/google-signin; upgrading to Universal Sign-In for Credential Manager requires a paid license. react-native-nitro-google-signin offers the same modern One Tap–style flow on Android (and iOS) at no cost, with Expo support via config plugin—this PR makes that path discoverable in official RN Firebase docs.

Test plan

  • Review rendered docs on social-auth Google section (comparison table, nitro install/sign-in/link examples, existing google-signin section unchanged in spirit).
  • Verify links: nitro npm/docs, Credential Manager Android guide, Universal Sign-In pricing, Expo dev build + config plugin.
  • Confirm docs/auth/usage/index.mdx revokeAccess note reads correctly next to existing Google Sign-In link.

@CLAassistant

CLAassistant commented Jun 2, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request enhances the documentation for Google Sign-In within the project. It provides developers with a clear, free path to implementing Android Credential Manager by documenting the use of the react-native-nitro-google-signin library. It also clarifies the distinction between the free and paid tiers of the existing Google Sign-In library, ensuring users can make informed decisions regarding their authentication implementation.

Highlights

  • Documentation of react-native-nitro-google-signin: Added comprehensive documentation for using react-native-nitro-google-signin as a free, MIT-licensed alternative for Android Credential Manager support.
  • Comparison Table: Introduced a comparison table in the social-auth documentation to clarify the cost and features of different Google Sign-In libraries, specifically highlighting the paid nature of Credential Manager in the standard library.
  • Updated Revoke Access Guidance: Updated the usage documentation to provide generic guidance on using revokeAccess() across different Google sign-in libraries.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize the Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the Google Sign-In documentation to introduce react-native-nitro-google-signin as a free alternative supporting Android's Credential Manager, alongside @react-native-google-signin/google-signin. Feedback on the code examples highlights potential runtime errors, specifically recommending the use of optional chaining when accessing response.data and verifying that getAuth().currentUser is not null before calling linkWithCredential.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread docs/auth/social-auth.mdx
Comment thread docs/auth/social-auth.mdx
Comment thread docs/auth/social-auth.mdx Outdated
Comment thread docs/auth/social-auth.mdx Outdated
@rutvik24 rutvik24 force-pushed the docs/auth-google-credential-manager-nitro branch from 9da9b31 to 0e3a310 Compare June 2, 2026 05:47
@rutvik24 rutvik24 changed the title docs(auth): document free Credential Manager Google Sign-In via react-native-nitro-google-signin docs(auth): document free Credential Manager Google Sign-In via react-native Jun 2, 2026
…mples

Avoid runtime errors when linking Google credentials while no user is signed in.
@mikehardy mikehardy merged commit a61bbab into invertase:main Jun 2, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants