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
- Renders Google's official button
- Offers a safe wrapper around Google's JS API
- Triggers onSuccess for silent and active login
import GoogleLoginButton, { Auth } from '@iddan/react-google-login';
const authInstance = Auth.init({
clientId: GOOGLE_CLIENT_ID
});
<GoogleLoginButton
authInstance={authInstance}
onSuccess={handleSuccess}
/>