E3V3A / TESTT

TEST -- This is only a test repo - nothing here
0 stars 0 forks source link

Authentication script error: missing keyFilePath #36

Open E3V3A opened 6 years ago

E3V3A commented 6 years ago

When running the current version of the google-auth.js script, some users has reported this error:

/home/pi/MagicMirror/modules/MMM-Assistant/node_modules/google-assistant/components/auth.js:18 
throw new Error(‘Missing “keyFilePath” from config (should be where your JSON file is)’);

The fix has been reported to be to edit out the auth:{ part like this :

const config = {
  //auth: {
    keyFilePath: path.resolve(__dirname,     '../assets/google-client-secret.json'), // secret.json
    savedTokensPath: path.resolve(__dirname, '../assets/google-access-tokens.json'), // resources/tokens.js
  //},
}