Google API - forces to Grant Permission Every time

前端 未结 1 844
误落风尘
误落风尘 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)
提交回复
热议问题