electron-vue-google-auth
Library that manages Google OAuth2 authentication for your Electronvue app.
Install
// npm
$ npm install --save electron-vue-google-auth
## Usage
### Access Token
```typescript
import ElectronVueGoogleOAuth2 from 'electron-vue-google-auth';
app.on('ready', () => {
const myApiOauth = new ElectronVueGoogleOAuth2(
'CLIENT_ID',
'CLIENT_SECRET',
['https://www.googleapis.com/auth/userinfo.email','https://www.googleapis.com/auth/userinfo.profile']
);
myApiOauth.openAuthWindowAndGetTokens()
.then(token => {
// use your token.access_token
});
});
Refresh Token
; app.on'ready',;
License
MIT