Meteor Accounts.ui.config does not work with Google

I'm just trying to log in with Google and get permissions for Calendar, etc. However, my code in the client requests user login for offline access. Why doesn't he request calendars, etc.? In addition, it does not raise an invitation for approval. I am using ian: accounts-ui-bootstrap-3

Accounts.ui.config({ requestPermissions: { google: ['https://www.googleapis.com/auth/calendar', 'https://www.googleapis.com/auth/calendar.readonly', 'https://www.googleapis.com/auth/userinfo.profile', 'https://www.googleapis.com/auth/userinfo.email', 'https://www.googleapis.com/auth/tasks'], // forceApprovalPrompt: {google: true} }, forceApprovalPrompt: {google: true}, requestOfflineToken: {google: true}, passwordSignupFields: 'EMAIL_ONLY', // extraSignupFields: [] }); 

The following Meteor docs do not help as I get this error:

 Uncaught Error: Accounts.ui.config: Invalid key: forceApprovalPrompt 
+5
source share
1 answer

The problem is that the forceApprovalPrompt key forceApprovalPrompt not recognized by the package. If you delete the key, it will request calendars, etc.

This seems to work when using the account-ui package, so this seems to be due to the lack of a function in ian:accounts-ui-bootstrap-3 .

+3
source

Source: https://habr.com/ru/post/1208994/


All Articles