I use Google accounts to authenticate users for the Google Drive app written in Meteor. I want to request the https://www.googleapis.com/auth/drive scope along with the user.email and user.profile scopes that are requested by default. I think this was done with requestPermissions, but I can't get it to work.
When adding this code, the problem is fixed:
if (Meteor.isClient){ var scopes = ['https://www.googleapis.com/auth/drive','https://www.googleapis.com/auth/userinfo.email'] Accounts.ui.config({'requestPermissions':{'google':scopes}}); }
Source: https://habr.com/ru/post/1529879/More articles:How to create random closed smooth CGPath? - iosUsing parentheses in the definition of preprocessor statements - cqwinsta - "Error [5] - access denied" - remote-accessAmazon RDS MySQL Replication and Master-master - mysqlHow to test conditional validation using rspec-rails 3.0.0 and toa-matchers 2.5.0 - ruby-on-rails-4local variables not accessible by python debugger - pythonWhat is the difference between SizeRootFs and SizeRw in Docker containers? - jsonMIPS calculator - mipsScroll bar inside fixed 100% div without javascript - htmlHow to change the style of bullets in markdown pandoc? - markdownAll Articles