Use SCOPE_PROFILE constant

This commit is contained in:
Girish Ramakrishnan
2018-04-27 21:16:49 -07:00
parent cc113d0bb5
commit 6e3b060615
4 changed files with 22 additions and 26 deletions
-4
View File
@@ -527,10 +527,6 @@ function validateRequestedScopes(req, requestedScopes) {
// It is used for API routes, which are authenticated using accesstokens.
// Those accesstokens carry OAuth scopes and the middleware takes the required
// scope as an argument and will verify the accesstoken against it.
//
// See server.js:
// var profileScope = routes.oauth2.scope('profile');
//
function scope(requestedScope) {
assert.strictEqual(typeof requestedScope, 'string');