Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.

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

Open
Lucaste10 opened this issue Jun 9, 2021 · 1 comment
Open

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

Lucaste10 opened this issue Jun 9, 2021 · 1 comment

Comments

@Lucaste10
Copy link

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
Copy link
Member

Fleker commented Jun 9, 2021

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants