We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55119ce commit fb8a790Copy full SHA for fb8a790
1 file changed
server/routes/auth.routes.js
@@ -552,12 +552,13 @@ module.exports = {
552
userRole: srt_userinfo.userRole,
553
firstName: srt_userinfo.firstName || userInfo.given_name,
554
lastName: srt_userinfo.lastName || userInfo.family_name,
555
+ loginMethod: "login.gov",
556
}
557
let location = `${config['srtClientUrl']}/auth?info=${jsonToURI(uri_components)}`
558
+
559
+ //console.log("Redirecting to: ", location)
560
- return res.status(302)
- .set('Location', location)
- .send(`<html lang="en"><body>Preparing login</body></html>`)
561
+ return res.redirect(302, location);
562
})
563
});
564
0 commit comments