From 4ba9eb9ffe7ed7f290c2fca3dfbeaa18479af018 Mon Sep 17 00:00:00 2001 From: Ryan Williams Date: Tue, 9 Jan 2024 19:51:28 -0800 Subject: [PATCH] typo --- index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 749492c..e85503c 100644 --- a/index.js +++ b/index.js @@ -69,7 +69,7 @@ const host = process.env.RELAY_HOST -async function authtentication(req, res, next) { +async function authentication(req, res, next) { console.log(JSON.stringify(req.params)) console.log(JSON.stringify(req.cookies)) console.log(JSON.stringify(req.body)) @@ -90,7 +90,7 @@ async function apiRequest(endpoint, payload = {}, method = 'POST') { return resp.data } -app.get('/', authtentication, async (req, res) => { +app.get('/', authentication, async (req, res) => { const response = await apiRequest('/api/fabric/subscribers/tokens', token_request) res.render('index', { host, @@ -110,7 +110,7 @@ app.get('/minimal', async (req, res) => { }); }); -app.get('/oauth', authtentication, (req, res) => { +app.get('/oauth', authentication, (req, res) => { res.send(200) });