react-google-calendar-api
react-google-calendar-api copied to clipboard
Get token and refresh token
Hi ! Is any way to get the token and refresh token ? i dont see any method or variable to do it
I think you can access it by using apiCalendar.tokenClient
https://developers.google.com/identity/oauth2/web/guides/use-token-model
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
You can do no ?
apiCalendar.tokenClient.requestAccessToken({ prompt: 'consent' });