Could not load the default credentials? (Node.js Google Compute Engine tutorial)

后端 未结 14 1594
情话喂你
情话喂你 2020-12-04 19:20

SITUATION:

I follow this tutorial: https://cloud.google.com/nodejs/tutorials/bookshelf-on-compute-engine

Everything works fine until I do

14条回答
  •  再見小時候
    2020-12-04 19:41

    For all people using firebase, what it worked for me was passing the credentials to the KeyManagementServiceClient constructor

    const serviceAccount = require('../keys/file.json'); //<- your firebase credentials
    const client = new KeyManagementServiceClient({
          credentials: serviceAccount,
        });
    

提交回复
热议问题