bluzi / google-tasks-api

:rocket: Google Tasks API for humans
53 stars 1 forks source link

Cannot read properties of undefined (reading 'tasklists') #9

Open Sam-B-Y opened 2 years ago

Sam-B-Y commented 2 years ago

Hey, I got a little problem: When I try to log the lists of my list of tasks, an error comes up [[PromiseResult]]: TypeError: Cannot read properties of undefined (reading 'tasklists') at Object.listTaskLists (https://cdn.jsdelivr.net/npm/google-tasks-api@latest/dist/index.min.js:84:56)

My code is

await googleTasksApi.authorize(clientID).then(
  console.log(googleTasksApi.listTaskLists()))

The .authorize works totally fine.

Thank you in advance