From 273412176540e0d88005c4caf059c5421245e799 Mon Sep 17 00:00:00 2001 From: Afrie Irham <32460534+afrieirham@users.noreply.github.com> Date: Wed, 6 Oct 2021 12:51:21 +0800 Subject: [PATCH] Add guide on how to set custom successRedirectURL --- readme.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/readme.md b/readme.md index 060e015..c9d53a9 100644 --- a/readme.md +++ b/readme.md @@ -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