added oauth refresh token support

Co-authored-by: timvisee <tim@visee.me>
This commit is contained in:
Danny Coates 2020-07-24 18:11:50 -07:00 committed by timvisee
parent b15c017dcd
commit 4f273eca03
No known key found for this signature in database
GPG key ID: B8DB720BC383E172
8 changed files with 118 additions and 27 deletions

View file

@ -181,14 +181,15 @@ describe('Upload / Download flow', function() {
it('can allow multiple downloads', async function() {
const fs = new FileSender();
const file = await fs.upload(archive);
const a = new Archive([blob]);
a.dlimit = 2;
const file = await fs.upload(a);
const fr = new FileReceiver({
secretKey: file.toJSON().secretKey,
id: file.id,
nonce: file.keychain.nonce,
requiresPassword: false
});
await file.changeLimit(2);
await fr.getMetadata();
await fr.download(options);
await file.updateDownloadCount();