Skip to content

Auth error [Cannot read property '0' of undefined] #106

@shrekmaster

Description

@shrekmaster

Trying to execute the code with client_secret json file. When I put the path in the code and try to execute after installing node module, get the following error

`/google-assistant/components/auth.js:26
const oauthClient = new OAuth2Client(key.client_id, key.client_secret, key.redirect_uris[0]);
^

TypeError: Cannot read property '0' of undefined
at new Auth (/google-assistant/components/auth.js:26:91)
at new GoogleAssistant (/google-assistant/index.js:33:18)
at Object. (/google-assistant/examples/console-input.js:60:19)
`

Any idea what I may be doin wrong here? client secret json file created and authenticated. It also works fine with another code that I have tried before

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions