@iddan/react-google-login

0.1.7 • Public • Published

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

Package Sidebar

Install

npm i @iddan/react-google-login

Weekly Downloads

0

Version

0.1.7

License

MIT

Unpacked Size

309 kB

Total Files

19

Last publish

Collaborators

  • iddan