Kubessandra / react-google-calendar-api

An api to manage your google calendar
MIT License
213 stars 89 forks source link

handleAuthClick() returns undefined #74

Closed geminismille closed 2 years ago

geminismille commented 2 years ago

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?

Kubessandra commented 2 years ago

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

Kubessandra commented 2 years ago

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