Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get token and refresh token #87

Open
MatiasZelayaDept opened this issue Jul 6, 2022 · 3 comments
Open

Get token and refresh token #87

MatiasZelayaDept opened this issue Jul 6, 2022 · 3 comments

Comments

@MatiasZelayaDept
Copy link

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

@Kubessandra
Copy link
Owner

I think you can access it by using apiCalendar.tokenClient

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

@MatiasZelayaDept
Copy link
Author

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

@Kubessandra
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants