Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
[allowedTypes.state]: (options) => {
const service = new StateImporter(
Object.assign({}, options.config, {
apiConfig: {
host: options.authHost,
projectKey: options.credentials.project_key,
credentials: {
clientId: options.credentials.client_id,
clientSecret: options.credentials.client_secret,
},
apiUrl: options.host,
protocol: options.protocol,
oauth_protocol: options.authProtocol,
},
accessToken: options.accessToken,
}),
log,
)