Adonisjs, Nodejs.
errors.E_UNAUTHORIZED_ACCESS) { + // Place the current URL including the query string in the Session: + ctx.session.put(returnToKey, ctx.request.url(true)) + } + + throw err + } return next() } } The export of returnToKey is so that we can later use the same session key with ease, because if you