minor changes

This commit is contained in:
Bhavnoor Singh Saroya 2025-08-25 14:23:55 -07:00
parent 909b29dfb5
commit af2e220116
30 changed files with 598 additions and 350 deletions

View file

@ -36,8 +36,11 @@ passport.use(
try {
console.log("Sending request to external auth service...");
console.log(
`Request URL: ${process.env.ASSIGNMENT_SERVICE_URL}student/verify`
);
const response = await axios.post(
`${process.env.ASSIGNMENT_SERVICE_URL}/student/verify`,
`${process.env.ASSIGNMENT_SERVICE_URL}student/verify`,
{
qrNumber,
password,
@ -64,6 +67,7 @@ passport.use(
passport.serializeUser((user, done) => {
console.log("Serializing user:", user);
console.log(process.env.NODE_ENV)
// done(null, user);
done(null, {
userId: user.qrcodenumber || user.userId,