From c7feee5ee21421df60162f0a4fdc1bcebc0088d4 Mon Sep 17 00:00:00 2001 From: Kyle Deal Date: Fri, 6 Oct 2023 20:41:34 +0000 Subject: [PATCH] Fix getting the returnUrl I was trying to fix a linting error and changed this line. I forgot to retest after I did and didn't catch that I broke getting the url. --- frontend/routes/authRoutes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/routes/authRoutes.js b/frontend/routes/authRoutes.js index abc0583..bd681db 100644 --- a/frontend/routes/authRoutes.js +++ b/frontend/routes/authRoutes.js @@ -23,7 +23,7 @@ module.exports = (app) => { (req, res) => { const { state } = req.query; if (app.locals.stateStore.has(state)) { - const { redirectUrl } = app.locals.stateStore.get(state).returnUrl; + const redirectUrl = app.locals.stateStore.get(state).returnUrl; app.locals.stateStore.delete(state); res.redirect(redirectUrl); } else {