Accounts.ui.config not working as expected


#1

Hello, I’m making a project in meteor, and when trying to ask credentials for users, I have the next code on /imports/startup/client/accounts-config.js

  Accounts.ui.config({
    requestPermissions: {
      google: [
        'https://www.googleapis.com/auth/drive',
        'https://www.googleapis.com/auth/drive.metadata',
        'https://www.googleapis.com/auth/drive.appdata',
        'https://www.googleapis.com/auth/drive.file',
        'https://www.googleapis.com/auth/userinfo.email',
        'https://www.googleapis.com/auth/userinfo.profile',
      ],
    },
    requestOfflineToken: {
      google: true,
    },
    forceApprovalPrompt: {
      google: true,
    },
  });

When a users registers on the platform, sometimes the drive/email credential appears, but almost every time now, only one scope is appearing, and it is the one that says ‘This app requests your information when you are offline’ and nothing of google drive, etc is appearing.

Has anyone got an idea of why this is happening?
Thanks!