index.js
function verifyScope (account, scope) {
    if (!account || !account.scopes || !account.scopes.length || !scope) return false
    return account.scopes.includes(scope)
  }
function verifyScope (account, scope) {
    if (!account || !account.scopes || !account.scopes.length || !scope) return false
    return account.scopes.includes(scope)
  }
function verifyScope ( account , scope ) { if ( ! account || ! account . scopes || ! account . scopes . length || ! scope ) return false return account . scopes . includes ( scope ) }
Verify that a scope matches what is available in an object with a scopes property

@name access.verifyScope
@memberof townshipAccess
@param {string} key - the key for the access scopes
@param {function} callback - callback with `err`, `data` arguments
@return {boolean} returns `true` if `scope` is found in `data.scopes`
Verify that a scope matches what is available in an object with a scopes property