You can download an object from OSS using any of the following methods:

HTTP download (using a browser)

You can use the signatureUrl method in the browser to generate the downloadable HTTP address.The validity period of the URL is half an hour by default:

let OSS = require('ali-oss');

let client = new OSS({
  region: '<Your region>',
  accessKeyId: '<Your AccessKeyId>',
  accessKeySecret: '<Your AccessKeySecret>',
  bucket: 'Your bucket name'
});

let url = client.signatureUrl('object-key');
console.log(url);

let url = client.signatureUrl('object-key', {expires: 3600});
console.log(url);