react-google-calendar-api icon indicating copy to clipboard operation
react-google-calendar-api copied to clipboard

Get token and refresh token

Open MatiasZelayaDept opened this issue 2 years ago • 3 comments

Hi ! Is any way to get the token and refresh token ? i dont see any method or variable to do it

MatiasZelayaDept avatar Jul 06 '22 15:07 MatiasZelayaDept

I think you can access it by using apiCalendar.tokenClient

https://developers.google.com/identity/oauth2/web/guides/use-token-model

Kubessandra avatar Jul 07 '22 08:07 Kubessandra

We dont have the token or refresh token there, i saw that the token we can get with gapi.client.getToken() but that is inside your code, if you can made a method to retrieve that it will be great, and the refresh token i didnt found how to get it

MatiasZelayaDept avatar Jul 07 '22 12:07 MatiasZelayaDept

You can do no ? apiCalendar.tokenClient.requestAccessToken({ prompt: 'consent' });

Kubessandra avatar Jul 15 '22 10:07 Kubessandra