Kubessandra / react-google-calendar-api

An api to manage your google calendar

Repository from Github https://github.comKubessandra/react-google-calendar-apiRepository from Github https://github.comKubessandra/react-google-calendar-api

handleAuthClick() returns undefined

geminismille opened this issue · comments

I am using this package to integrate google calendar into one of my project and when I call ApiCalendar.handleAuthClick() and try to see the response it gives me undefined.

Here is the code I am doing right now:
ApiCalendar.handleAuthClick().then((response) => { console.log(response); })

Seems like it does not send promise as a response if that is the case then how can I get the access token?

Hello,
I will merge this PR #69 today, before this PR the handleAuthClick does not return a Promise.

The new version is 1.5.0 and you have access to the promise