Skip to content

Commit 088240b

Browse files
atu816neighbor-peacegeistnine01001101CK
committed
Cleaned up backend. No more parser in controller.
Co-authored-by: Michael Costello <[email protected]> Co-authored-by: Steven Geiger <[email protected]> Co-authored-by: Yufa Li <[email protected]> Co-authored-by: Alexander Tu <[email protected]>
2 parents b090fa2 + 23f57e3 commit 088240b

File tree

17 files changed

+161
-847
lines changed

17 files changed

+161
-847
lines changed

server/controllers/auth.controller.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ export const handleGoogleAuth: RequestHandler = async (req, res) => {
2121

2222
//get user with tokens
2323
const decodedUser = jwt.decode(id_token) as JwtPayload;
24-
console.log(decodedUser, ' decodedUser');
2524

2625
if (!decodedUser.email_verified) {
2726
req.session.destroy((err) => {
@@ -30,10 +29,8 @@ export const handleGoogleAuth: RequestHandler = async (req, res) => {
3029
})
3130
}
3231

33-
console.log('decoded user', decodedUser)
3432
//insert or retrieve the user
3533
const foundUser: any = await findUser(decodedUser.email)
36-
console.log(client_url, ' client_url');
3734
// // if we did not find the user, create one
3835
if (!foundUser) {
3936
createUser([

0 commit comments

Comments
 (0)