GO

Google

@react-oauth/google

Google OAuth2 using Google Identity Services for React πŸš€

Authentication
react
reactjs
react-component
react-oauth-google
react-google-login
react-social-login
react-oauth
react-login
google-login
google-oAuth2
Stars
1
Weekly
0
Open issues
0
Bundle
~60 kB

Installation

npm install @react-oauth/google

Code example

import { signIn } from "@react-oauth/google";

export function Example() {
  return (
    <button type="button" onClick={() => signIn()}>
      Continue with Google
    </button>
  );
}

Pros & cons

Pros

  • Actively maintained by Mo'men Sherif
  • 0 weekly downloads. Battle tested
  • First-class TypeScript definitions
  • MIT licensed

Considerations

  • Adds roughly ~60 kB to your bundle
  • Needs client-only rendering in SSR frameworks
  • Not supported in React Native
  • 0 open issues on GitHub

FAQs

Alternatives & similar libraries