<commit_before># vue-google-auth
Handling Google sign-in and sign-out for Vue.js applications

## Installation
`npm install simmatrix/vue-google-auth`

## Initialization
```
import GoogleAuth from 'vue-google-auth'

Vue.use(GoogleAuth, { clientID: 'xxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com' })
Vue.googleAuth().load()
```
Ideally you shall put in this in your main file, e.g. main.js

## Usage
Handling Google sign-in, this is added within the login page
```
import Vue from 'vue'

Vue.googleAuth().signIn(function () { 
  // things to do when sign-in succeeds
}, function () {
  // things to do when sign-in fails
))
```

Handling Google sign-out
```
import Vue from 'vue'

Vue.googleAuth().signOut(function () { 
  // things to do when sign-out succeeds
}, function () {
  // things to do when sign-out fails
))
```<commit_msg>Modify the README file to reflect on the changes from the previous commit<commit_after># vue-google-auth
Handling Google sign-in and sign-out for Vue.js applications

## Installation
`npm install simmatrix/vue-google-auth`

## Initialization
```
import GoogleAuth from 'vue-google-auth'

Vue.use(GoogleAuth, { clientID: 'xxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com' })
Vue.googleAuth().load()
```
Ideally you shall put in this in your main file, e.g. main.js

## Usage
Handling Google sign-in, this is added within the login page
```
import Vue from 'vue'

Vue.googleAuth().signIn(function (googleUser) { 
  // things to do when sign-in succeeds
  // To get the access token: googleUser.access_token
}, function () {
  // things to do when sign-in fails
))
```

Handling Google sign-out
```
import Vue from 'vue'

Vue.googleAuth().signOut(function () { 
  // things to do when sign-out succeeds
}, function () {
  // things to do when sign-out fails
))
```
{'fraction_non_alphanumeric': 0.126775956284153, 'fraction_numerical': 0.0, 'mean_word_length': 4.128851540616247, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 4, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2509276', 'n_tokens_mistral': 621, 'n_tokens_neox': 570, 'n_words': 189}