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 @@
+ <% if (user) { %> +
+
User Info
+
+
    +
  • email: <%= user.email %>
  • +
  • First Name: <%= user.first_name %>
  • +
  • Last Name: <%= user.last_name %>
  • +
  • Display Name: <%= user.display_name %>
  • +
  • Job Title: <%= user.job_title %>
  • +
  • Time Zone: <%= user.time_zone %>
  • +
  • Ccountry: <%= user.country %>
  • +
  • Region: <%= user.region %>
  • +
  • Company Name: <%= user.company_name %>
  • +
+
+
+ <% } %> +
Connect