Trim API token's whitespace
This commit is contained in:
parent
a8aeb48806
commit
1a467707e8
1 changed files with 1 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ const BCH_CODES = ['BCH', 'TBCH']
|
||||||
|
|
||||||
function buildBitgo (account) {
|
function buildBitgo (account) {
|
||||||
const env = account.environment === 'test' ? 'test' : 'prod'
|
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) {
|
function getWallet (account, cryptoCode) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue