Google API - forces to Grant Permission Every time

前端 未结 1 843
误落风尘
误落风尘 2021-01-21 08:10

I am using Google API PHP Client. And every time i try to login I am forced to grant permissions to the apps.

Below is my code. I am basically accessing Google API for

1条回答
  •  不知归路
    2021-01-21 08:56

    By Setting

    $client->setApprovalPrompt('auto');
    

    It will automatically redirect if the account has access to the apis. By Default its 'force'

    0 讨论(0)
提交回复
热议问题