Skip to content

Commit

Permalink
Fix getting the returnUrl
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
kdeal committed Oct 6, 2023
1 parent 0dbd90c commit 4ac123e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/routes/authRoutes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 4ac123e

Please sign in to comment.