Skip to content

Commit

Permalink
CHE-162 Cleaning up dirty consoles
Browse files Browse the repository at this point in the history
  • Loading branch information
brok3turtl3 committed Jun 3, 2024
1 parent 03e7db5 commit 3d3f922
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions server/controllers/authController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,9 @@ import asyncHandler from 'express-async-handler';

const authSession = asyncHandler(async (req, res) => {
let token;
console.log('PROTECT HIT');
console.log(req.headers);
console.log('cookies:', req.cookies);

if (req.cookies.token) {
console.log(req.headers);
try {
console.log('try block hit!');
token = req.cookies.token;
const secret = process.env.JWT_SECRET as string;
const decoded = jwt.verify(token, secret) as jwt.JwtPayload;
Expand Down

0 comments on commit 3d3f922

Please sign in to comment.