# react-google-login-component-aop

> React Component that lets you instantly login through google platform

Latest version **0.6.2** (published 2016-09-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-google-login-component-aop
pnpm add react-google-login-component-aop
yarn add react-google-login-component-aop
bun add react-google-login-component-aop
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.6.2 |
| Published | 2016-09-19 |
| First published | 2016-09-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Kennet Postigo |
| Maintainers | aop |
| Keywords | React, Google, Login, Auth, oauth, component |

## Links

- npm: https://www.npmjs.com/package/react-google-login-component-aop
- Repository: https://github.com/aop/react-google-login-component
- Homepage: https://github.com/aop/react-google-login-component#readme
- Issues: https://github.com/aop/react-google-login-component/issues
- npm.io page: https://npm.io/package/react-google-login-component-aop

## Alternatives

- [@pothos/plugin-authz](https://npm.io/package/@pothos/plugin-authz.md) — 12.4K weekly downloads
- [@bounded-sh/client](https://npm.io/package/@bounded-sh/client.md) — 3.2K weekly downloads
- [@luigi-project/plugin-auth-oauth2](https://npm.io/package/@luigi-project/plugin-auth-oauth2.md) — 2.3K weekly downloads
- [@nocobase/plugin-verification](https://npm.io/package/@nocobase/plugin-verification.md) — 2.0K weekly downloads
- [escher-request](https://npm.io/package/escher-request.md) — 545 weekly downloads

## Recent versions

- 0.6.2 (latest) — 2016-09-19
- 0.6.1 — 2016-09-19
- 0.6.0 — 2016-09-19

## README

# react-google-login-component
> React Google Component to log users in through google

[![version](https://img.shields.io/npm/v/react-google-login-component.svg?style=flat-square)](http://npm.im/react-google-login-component-aop)
[![MIT License](https://img.shields.io/npm/l/react-google-login-component.svg?style=flat-square)](http://opensource.org/licenses/MIT)

A fork from https://github.com/kennetpostigo/react-google-login-component

react-google-login-component is a module that easily lets you drop it into
your existing project and get the benefits of Google Login. It's a plug and
play component that'll fit in your workflow if your using standalone React or
React with Redux.

You can find login with Facebook [here](https://github.com/aop/react-facebook-login-component)

##### Up to date with the latest API Version

## Usage
```bash
npm install --save react-google-login-component-aop
```
```js
import React from 'react';
import { GoogleLogin } from 'react-google-login-component';

class Login extends React.Component{

  constructor (props, context) {
    super(props, context);
  }

  responseGoogle (googleUser) {
    var id_token = googleUser.getAuthResponse().id_token;
    console.log({accessToken: id_token});
    //anything else you want to do(save to localStorage)...
  }

  render () {
    return (
      <div>
        <GoogleLogin socialId="yourClientID"
                     class="google-login"
                     scope="profile"
                     responseHandler={this.responseGoogle}
                     buttonText="Login With Google"/>
      </div>
    );
  }

}

export default Login;

```

---
_Source: https://npm.io/package/react-google-login-component-aop · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
