Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const cozy = require('cozy-client-js')
const appPackage = require('../package.json')
const fs = require('fs')
const { addUtilityMethods } = require('./cozy-client-mixin')
const path = require('path')
const AppToken = cozy.auth.AppToken
const log = require('./log')
const { ChainedError } = require('./errors')
const jwt = require('jsonwebtoken')
const CLIENT_NAME = appPackage.name.toUpperCase()
const SOFTWARE_ID = CLIENT_NAME + '-' + appPackage.version
const enableDestroy = require('server-destroy')
const exported = {}
const revokeACHClients = (cozyClient, options) => {
const { exclude } = options
return cozyClient.settings.getClients().then(oAuthClients => {
const revocations = oAuthClients
.filter(
oAuthClient =>