Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
const app = new (require('express'))();
const wt = require('webtask-tools');
const crypto = require('crypto');
// Be sure to specify your SDK key for your environment!
app.get('/', (req, res) => {
const hmac = crypto.createHmac('sha256', req.webtaskContext.secrets.LD_SDK_KEY);
req.user.ld_hash = hmac.digest('hex');
res.setHeader('Content-Type', 'application/json');
module.exports = wt.fromExpress(app).auth0()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.