Meteor js requestPermissions not working


#1

Meteor js requestPermissions not working . I want to access google calendar , access token not permission with google calendar . So please suggest me , How I can get access google calendar . Thanks Advance

Meteor.loginWithGoogle({
requestPermissions: [
https://www.googleapis.com/auth/calendar’,
https://www.googleapis.com/auth/userinfo.profile’,
https://www.googleapis.com/auth/tasks’],
requestOfflineToken: true
});


#2

Mine too not working same thing as yours. I too need help.


#3

I see meteor gooogle-oauth package use https://accounts.google.com/o/oauth2/auth as end point service. But here, at https://developers.google.com/identity/protocols/OAuth2WebServer#formingtheurl google uses https://accounts.google.com/o/oauth2/v2/auth as OAuth 2.0 endpoint. I don’t know if it causes the problem.
The package file location: .meteor/local/build/programs/web.browser/packages/google-oauth.js