【发布时间】:2014-12-14 10:11:02
【问题描述】:
我只是尝试使用 Google 登录并获取日历等权限。但是,我在客户端中的代码仅提示用户登录以进行离线访问。为什么它不要求日历等?此外,它不会强制批准提示。我正在使用 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: []
});
以下 Meteor 文档无济于事,因为我收到此错误:
Uncaught Error: Accounts.ui.config: Invalid key: forceApprovalPrompt
【问题讨论】:
标签: javascript meteor twitter-bootstrap-3 google-signin