Skip to content

Commit

Permalink
Merge pull request #31 from afrieirham/master
Browse files Browse the repository at this point in the history
Add guide on how to set custom successRedirectURL
  • Loading branch information
magne4000 authored Oct 7, 2021
2 parents ece9ffa + 2734121 commit a91543b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,16 @@ app.on('ready', () => {
});
```

### Use custom successRedirectURL
```js
const myApiOauth = new ElectronGoogleOAuth2(
'CLIENT_ID',
'CLIENT_SECRET',
['https://www.googleapis.com/auth/drive.metadata.readonly']
{ successRedirectURL: 'https://google.com' },
);
```

### Requires with plain JavaScript

```js
Expand Down

0 comments on commit a91543b

Please sign in to comment.