Skip to content

Commit

Permalink
Add guide on how to set custom successRedirectURL
Browse files Browse the repository at this point in the history
  • Loading branch information
afrieirham authored Oct 6, 2021
1 parent ece9ffa commit 2734121
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 2734121

Please sign in to comment.