Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
$clientId = trim(readline('Google Client ID: '));
$clientSecret = trim(readline('Google Client Secret: '));
echo PHP_EOL;
$redirectUri = trim(readline('redirectUri: '));
echo PHP_EOL;

echo 'You need to select the scopes you need access to. Go to the';
echo PHP_EOL;
Expand All @@ -48,7 +50,7 @@
}
}

$googleOAuth2Handler = new GoogleOAuth2Handler($clientId, $clientSecret, $scopes);
$googleOAuth2Handler = new GoogleOAuth2Handler($clientId, $clientSecret, $scopes, $redirectUri);

echo PHP_EOL;
echo 'Now, go to the following URL, sign in to your Google Account,';
Expand Down