Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export const appToken = function (apiKeys) {
if( objHasProp(apiKeys,'public') && objHasProp(apiKeys,'secret')){
let publicKey = apiKeys.public;
let secret = apiKeys.secret;
return sha1( publicKey + secret);
}
return '';
};
export const appToken = function (apiKeys) {
if( objHasProp(apiKeys,'public') && objHasProp(apiKeys,'secret')){
let publicKey = apiKeys.public;
let secret = apiKeys.secret;
return sha1( publicKey + secret);
}
return '';
};