Как не получать разрешения каждый раз, когда пользователь Google входит - PullRequest
0 голосов
/ 08 июля 2019

Каждый раз, когда пользователь входит в мое веб-приложение, ему предлагается предоставить разрешение для областей, которые я запрашиваю, а не только в первый раз.

Это мой клиентский конфиг

$client = new Google_Client();
$client->setAuthConfig('myConfigFile.json');
$client->addScope(Google_Service_Calendar::CALENDAR);
$client->setRedirectUri($myRedirectUri);
$client->setIncludeGrantedScopes(true);

// I have tried both of the following lines and neither has solved the problem
$client->setApprovalPrompt('auto'); // This is what another stack overflow answer said to do but it has not worked for me
$client->setPromt('select_account');
...