Pan*_*Man 2 node.js google-cloud-storage google-api-nodejs-client google-cloud-platform google-auth-library
我想在 NodeJS 中使用Google Cloud Storage,但使用google-auth-library进行身份验证 具体来说:我想将其托管在 heroku 上,所以我想将秘密保存在环境变量中,而不是文件中(因为我必须这样做)提交文件以部署到 heroku)。基本上是身份验证库中建议的内容: https ://github.com/googleapis/google-auth-library-nodejs#loading-credentials-from-environment-variables
但我似乎无法将生成的客户端传递给存储构造函数?
| 归档时间: |
|
| 查看次数: |
2152 次 |
| 最近记录: |