diff --git a/index.js b/index.js index bb5097c..068d2bf 100644 --- a/index.js +++ b/index.js @@ -99,13 +99,16 @@ async function getSubscriberToken(reference, password) { app.get('/', async (req, res) => { let token + let user if (req.session && req.session.token) { token = req.session.token + user = req.session.user } res.render('index', { host, token: token, + user: user, fabricApiUrl: fabricApiUrl, destination: process.env.DEFAULT_DESTINATION, firebaseConfig: FIREBASE_CONFIG, diff --git a/views/index.ejs b/views/index.ejs index 7ef6092..b6debe5 100644 --- a/views/index.ejs +++ b/views/index.ejs @@ -49,6 +49,25 @@