actions-on-google-nodejs icon indicating copy to clipboard operation
actions-on-google-nodejs copied to clipboard

TypeError: Cannot read property '0' of undefined

Open Lucaste10 opened this issue 4 years ago • 1 comments

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]);

Lucaste10 avatar Jun 09 '21 00:06 Lucaste10

Can you provide more of the details on your code and how it may have called this function

Fleker avatar Jun 09 '21 17:06 Fleker