Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function createClient() {
const token = settings.settingForKey(ACCESS_TOKEN_KEY);
const organization = settings.settingForKey(ORGANIZATION);
if (!token) {
throw 'Please set access token';
}
return new crowdin({ token, organization }, { httpClientType: HttpClientType.FETCH });
}