授权信息究竟存储在哪里?

Where is the authorization information exactly stored?

https://developers.google.com/google-apps/calendar/quickstart/php#step_1_enable_the_api_name 在 Google 日历 API 的注释部分下,它说:

"Authorization information is stored on the file system, so subsequent executions will not prompt for authorization."

凭据文件的位置在 CREDENTIALS_PATH 变量中指定。 使用 expandHomeDirectory 函数获取确切位置。

$credentialsPath = expandHomeDirectory(CREDENTIALS_PATH); echo $credentialsPath

我的位于:C:\Users\MyUsername\.credentials\calendar-php-quickstart.json

我问这个的原因是我有一个错误

Error refreshing the OAuth2 token, message: '{ "error" : "unauthorized_client".....

我删除了文件重新认证。