# google-login-gsi

> Google Sign-in with Google Identity Service

Latest version **1.0.0** (published 2022-12-04) · ISC license · 0 weekly downloads

## Install

```sh
npm install google-login-gsi
pnpm add google-login-gsi
yarn add google-login-gsi
bun add google-login-gsi
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2022-12-04 |
| First published | 2022-12-04 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | phamlehoan |
| Maintainers | phamlehoan |
| Keywords | google, signin, google-signin, google, oauth, google, oauth2, google, login, google-login, oauth2, gsi, google, identity, google, identity, service, google, identity, services, vue, vuejs, react, reactjs, angular |

## Links

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

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2022-12-04

## README

# Google Login GSI

[![npm](https://img.shields.io/npm/v/vue3-google-signin)](https://www.npmjs.com/package/vue3-google-signin) ![NPM](https://img.shields.io/npm/l/vue3-google-signin)

Use Google Identity Services with your Javascript App easily

## Installation

- With **NPM**

```bash
npm i --save google-login-gsi
```

## How to use

### Import library

```js
import * as gAuth from "@types/google-login-gsi";

// or

const gAuth = require('google-login-gsi');
```

### SignIn
```js
const response = await gAuth.signIn({
  client_id: YOUR_GOOGLE_CLIENT_ID,
  scope: "profile email" // You can update your scope here
});
```

### Check user is logged in
```js
const isLoggedIn = await gAuth.isLoggedIn(); // Return boolean
```

### Get logged in user information
```js
const user = await gAuth.getUserInfo(); // Return an object
```

### Sign out
```js
gAuth.signOut();
```

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