Trim API token's whitespace

This commit is contained in:
Neal Conner 2019-05-13 17:18:54 -04:00 committed by Josh Harvey
parent a8aeb48806
commit 1a467707e8

View file

@ -16,7 +16,7 @@ const BCH_CODES = ['BCH', 'TBCH']
function buildBitgo (account) {
const env = account.environment === 'test' ? 'test' : 'prod'
return new BitGo.BitGo({ accessToken: account.token, env, userAgent: userAgent })
return new BitGo.BitGo({ accessToken: account.token.trim(), env, userAgent: userAgent })
}
function getWallet (account, cryptoCode) {