When I have two different client IDs, after creating an authorized link using the first client ID, if I then try to create another authorized link using the second client ID, the program keeps using the first client ID due to the existence of the getOAuth2Service method
And Is there a need for the getOAuth2Service method to exist?
Environment details
OS: NAME="Ubuntu" VERSION="20.04.6 LTS (Focal Fossa)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 20.04.6 LTS" VERSION_ID="20.04" HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" VERSION_CODENAME=focal UBUNTU_CODENAME=focal
PHP version: -php 8.1.x swoole
Package name and version:
"google/apiclient": "^2.15",
Steps to reproduce
When I have two different client IDs, after creating an authorized link using the first client ID, if I then try to create another authorized link using the second client ID, the program keeps using the first client ID due to the existence of the getOAuth2Service method And Is there a need for the getOAuth2Service method to exist?
Code example