@iddan/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

Stats

StarsIssuesVersionUpdatedCreatedSize
@iddan/react-google-login
100.1.73 years ago3 years agoMinified + gzip package size for @iddan/react-google-login in KB

Readme

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 'react-google-login';

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

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

Prior Art

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.