# MomenSherif/react-oauth

Google OAuth2 using the new Google Identity Services SDK for React 🚀

Repository: https://github.com/MomenSherif/react-oauth
Canonical: https://ross.abutalabs.com/products/react-oauth
Homepage: https://www.npmjs.com/package/@react-oauth/google
Language: TypeScript
License: MIT
License Family: permissive
Topics: authentication, google, login, oauth, oauth2, react, react-google-login, react-oauth2
Last push: 2026-04-08T09:26:25+00:00

## Health v2 (maintenance only)
Score: 82/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 76, release rhythm 78, longevity 100
- inputs: {"age_days": 1580, "days_push": 147, "days_rel": 147, "gap_med": 2, "n_releases_24m": 8}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1338, forks 159 (observed 2026-08-28T04:04:25.743928+00:00)

## What it is
A collection of React libraries for OAuth2 authentication, including @react-oauth/google built on Google Identity Services and @react-oauth/github for GitHub login. It provides provider components and hooks for sign-in buttons, one-tap sign-up, and custom login flows with full TypeScript support.

## Use cases
- add google sign-in to a react app
- implement one-tap google login
- authenticate users with github oauth in react
- use google identity services in react
- add social login buttons to my react app
- handle oauth2 authorization code flow in react

## When to choose
- you need Google or GitHub OAuth in a React application
- you want a maintained wrapper around Google Identity Services
- you prefer typed hooks and provider components over raw OAuth plumbing

## When to avoid
- your app is not React-based
- you need OAuth providers other than Google or GitHub
- you need full server-side session management out of the box

## Facets
- artifact type: library
- maturity: active
- function: auth, sdk, frontend-framework
- domain: web-development, frontend, security
- platform: cross-platform
- tags: oauth2, google-login, github-login, react-hooks, typescript, identity-services, nodejs, web-server

## Member repositories
- MomenSherif/react-oauth (main) score 82

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:25.743928+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:43:57.958025+00:00, confidence not recorded.
  - readme: https://github.com/MomenSherif/react-oauth (fetched 2026-08-28T04:04:25.743928+00:00, sha 29f7feed0288)
- Data as of 2026-08-30T08:39:29.467469+00:00.
