1.1.4 • Published 2 years ago

@iedaas/react-google-signin v1.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

react-google-signin

React wrapper for "Google Sign In" using Google Identity Services

NPM JavaScript Style Guide

Install

npm install --save @iedaas/react-google-signin

or

yarn add @iedaas/react-google-signin

Usage

import React, { useCallback } from 'react';

import { GoogleSignIn } from '@iedaas/react-google-signin';

const App = () => {
  const onAuthenticated = useCallback((token: string) => {
    console.log(token);
  }, []);

  return <GoogleSignIn clientId={process.env.REACT_APP_GOOGLE_CLIENT_ID!}
                       onAuthenticated={onAuthenticated} />
}

License

MIT © dhavalpzala