fixing things across the board

This commit is contained in:
talksik
2022-03-18 10:03:57 -04:00
parent 9613e2b2cf
commit 3488278d2d
10 changed files with 95 additions and 52 deletions
+2
View File
@@ -22,9 +22,11 @@ export const authCheck = async (
"423533244953-banligobgbof8hg89i6cr1l7u0p7c2pk.apps.googleusercontent.com", // Specify the CLIENT_ID of the app that accesses the backend
});
const userId = ticket.getPayload()?.sub;
const email = ticket.getPayload()?.email;
// used in subsequent handlers
res.locals.userId = userId;
res.locals.email = email;
console.log(userId);