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}
/>