yakovkhalinsky/backblaze-b2

Calling authorize second time always fails when application credentials are used

phil-r opened this issue · 2 comments

Calling authorize second time fails when application credentials are used, because b2.accountId gets re-written with actual accountId.

Related to #64

I've submitted a patch for it: #67
Meanwhile you can use npm i @phil-r/backblaze-b2 with

const b2 = new B2({
    applicationKeyId: 'applicationKeyId', // instead of accountId
    applicationKey: 'applicationKey'
})

waiting for @yakovkhalinsky about your pull @phil-r. Tks