From 1a467707e85a1ab63c6b92bfc4780962c0362cf5 Mon Sep 17 00:00:00 2001 From: Neal Conner Date: Mon, 13 May 2019 17:18:54 -0400 Subject: [PATCH] Trim API token's whitespace --- lib/plugins/wallet/bitgo/bitgo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/plugins/wallet/bitgo/bitgo.js b/lib/plugins/wallet/bitgo/bitgo.js index d7e72bc3..60820efd 100644 --- a/lib/plugins/wallet/bitgo/bitgo.js +++ b/lib/plugins/wallet/bitgo/bitgo.js @@ -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) {