Skip to content
This repository has been archived by the owner on Apr 9, 2020. It is now read-only.
/ react-google-login Public archive

Get users into your apps quickly and securely, using a registration system they already use and trust -- their Google account with React

License

Notifications You must be signed in to change notification settings

iddan/react-google-login

Repository files navigation

React Google Login

Get users into your apps quickly and securely, using a registration system they already use and trust -- their Google account with React

npm install @iddan/react-google-login

or

yarn add @iddan/react-google-login

Features

  • Renders Google's official button
  • Offers a safe wrapper around Google's JS API
  • Triggers onSuccess for silent and active login

Usage

import GoogleLoginButton, { Auth } from '@iddan/react-google-login';

const authInstance = Auth.init({
  clientId: GOOGLE_CLIENT_ID
});

<GoogleLoginButton
  authInstance={authInstance}
  onSuccess={handleSuccess}
/>

Obtain a Google Client ID

Prior Art

About

Get users into your apps quickly and securely, using a registration system they already use and trust -- their Google account with React

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published