
Description
React OAuth is a collection of OAuth2 libraries for React applications, from the MomenSherif react-oauth repository. The Google package, @react-oauth/google, uses the Google Identity Services SDK to add Sign In With Google, one-tap sign-up, automatic sign-in and custom login buttons, with implicit and authorisation-code flows and full TypeScript support. The GitHub package, @react-oauth/github, is a React hook for GitHub OAuth authentication with zero runtime dependencies, a flexible API that leaves all the UI to the developer, error handling and built-in CSRF protection. Both have a quick start in the README and link to a full API reference. The project has a live demo for the Google package, and a contributing guide. It is licensed under the MIT licence. The README asks for the packages to be installed from npm, and it lists Google and GitHub documentation for the providers themselves. It suits React developers who want to add social sign-in to a web app without building the OAuth flow by hand.…
Highlights
- Google Sign In with Identity Services
- GitHub OAuth hook with CSRF protection
- TypeScript types and zero runtime dependencies for GitHub
- Implicit and authorisation-code flows
Ratings & Reviews
No ratings yet
Be the first to rate @react-oauth/google.
People also visit

react-simple-oauth2-login
A React Component for OAuth2 Login - adapted from react-github-login
@react-oauth/google FAQ
What does React OAuth provide?
React libraries for OAuth2 sign-in, with a Google package and a GitHub package.
What does the Google package include?
Sign In With Google, one-tap sign-up, automatic sign-in, custom buttons, and the implicit and authorisation-code flows.
Does the GitHub package need other libraries?
No. The README says it has zero runtime dependencies.
Is there a demo?
Yes. A live demo of the Google package is linked from the README.
What license is it under?
MIT, according to the README.
What are the best @react-oauth/google alternatives?
Popular alternatives to @react-oauth/google include react-simple-oauth2-login, react-facebook-login and react-facebook-auth. See all @react-oauth/google alternatives

















