Scope for just username?

Looks to me that instead of doing this:

var scope = ['user_read', 'user_blocks_read', 'user_subscriptions']; Meteor.loginWithTwitch({requestPermissions: scope}, function (err) { if (err) console.log('login failed: ' + err) });

You can do this:

var scope = []; Meteor.loginWithTwitch({requestPermissions: scope}, function (err) { if (err) console.log('login failed: ' + err) });

Basically, instead of omitting scopes completely, you can pass an empty array.

1 Like