actions-on-google-nodejs
actions-on-google-nodejs copied to clipboard
TypeError: Cannot read property '0' of undefined
When I run my code, it gives me the error that is the name of this issue. Can anyone help? This is the function it's having a problem with.
function authorize(credentials, callback) {
const {client_secret, client_id, redirect_uris} = credentials.installed;
const oAuth2Client = new google.auth.OAuth2(
client_id, client_secret, redirect_uris[0]);
Can you provide more of the details on your code and how it may have called this function