actions-on-google / actions-on-google-nodejs

Node.js client library for Actions on Google
https://actions-on-google.github.io/actions-on-google-nodejs
Apache License 2.0
900 stars 197 forks source link

TypeError: Cannot read property '0' of undefined #426

Open Lucaste10 opened 3 years ago

Lucaste10 commented 3 years ago

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]);
Fleker commented 3 years ago

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