index.js
function verifyScopes (data, scopes) {
    let i = 0
    const l = scopes.length

    for (i; i < l; i++) {
      if (!verifyScope(data, scopes[i])) return false
    }

    return true
  }
function verifyScopes (data, scopes) {
    let i = 0
    const l = scopes.length

    for (i; i < l; i++) {
      if (!verifyScope(data, scopes[i])) return false
    }

    return true
  }
function verifyScopes ( data , scopes ) { let i = 0 const l = scopes . length for ( i ; i < l ; i ++ ) { if ( ! verifyScope ( data , scopes [ i ] ) ) return false } return true }
Verify that a set of scopes match what is available in an object with a scopes property

@name access.verifyScopes
@memberof townshipAccess
@param {object} data
@param {array} data.scopes - array of strings
@param {array} scopes - array of strings with scopes that must match
@return {boolean} returns `true` if `scopes` are all found in `data.scopes`
Verify that a set of scopes match what is available in an object with a scopes property