@fusebit/add-on-sdk
Advanced tools
Comparing version 2.0.0 to 2.1.0
@@ -405,5 +405,6 @@ const Superagent = require('superagent'); | ||
exports.getStorageClient = (ctx) => { | ||
const expiry = 60 * 16; // 15+1 min to align with Lambda lifecycle plus some buffer | ||
const accessToken = Jwt.sign({}, Buffer.from(ctx.configuration.fusebit_storage_key, 'base64').toString('utf8'), { | ||
algorithm: 'RS256', | ||
expiresIn: 60 * 16, // 15+1 min to align with Lambda lifecycle plus some buffer | ||
expiresIn: expiry, | ||
audience: ctx.configuration.fusebit_storage_audience, | ||
@@ -420,2 +421,3 @@ issuer: ctx.configuration.fusebit_storage_issuer_id, | ||
etag: null, | ||
expiration: Date.now() + expiry * 1000, | ||
get: async function () { | ||
@@ -422,0 +424,0 @@ const response = await Superagent.get(url) |
{ | ||
"name": "@fusebit/add-on-sdk", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "SDK for implementing Fusebit Add-Ons", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
20595
409