google-auth-library-nodejs

TypeError: Cannot read property 'redirect_uris' of undefined

一个人想着一个人 提交于 2021-01-23 11:15:36
问题 I want to write an app that can process some of my gmail emails that are labeled a certain way. The example code here gave me a starting point for my code (which I've rewritten using promises instead of async await): 'use strict'; const path = require('path'); const { google } = require('googleapis'); const { authenticate } = require('@google-cloud/local-auth'); authenticate({ keyfilePath: path.join(__dirname, 'key.json'), scopes: [ 'https://www.googleapis.com/auth/gmail.readonly', ], }).then

TypeError: Cannot read property 'redirect_uris' of undefined

最后都变了- 提交于 2021-01-23 11:13:33
问题 I want to write an app that can process some of my gmail emails that are labeled a certain way. The example code here gave me a starting point for my code (which I've rewritten using promises instead of async await): 'use strict'; const path = require('path'); const { google } = require('googleapis'); const { authenticate } = require('@google-cloud/local-auth'); authenticate({ keyfilePath: path.join(__dirname, 'key.json'), scopes: [ 'https://www.googleapis.com/auth/gmail.readonly', ], }).then

TypeError: Cannot read property 'redirect_uris' of undefined

雨燕双飞 提交于 2021-01-23 11:13:06
问题 I want to write an app that can process some of my gmail emails that are labeled a certain way. The example code here gave me a starting point for my code (which I've rewritten using promises instead of async await): 'use strict'; const path = require('path'); const { google } = require('googleapis'); const { authenticate } = require('@google-cloud/local-auth'); authenticate({ keyfilePath: path.join(__dirname, 'key.json'), scopes: [ 'https://www.googleapis.com/auth/gmail.readonly', ], }).then