Skip to content

Commit

Permalink
Removed unnessary console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
IT21042324 committed Apr 21, 2024
1 parent a62561c commit 1386591
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions middleware/requireAuth.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ require("dotenv").config();
const requireAuth = async (req, res, next) => {
const backendUrl = process.env.BACKENDURI;

console.log(backendUrl);
// const backendUrl = "http://localhost:3000";

const { authorization } = req.headers;
Expand All @@ -26,7 +25,6 @@ const requireAuth = async (req, res, next) => {
// Retrieve user data from API using the id and role from the token
const { data } = await axios.get(`${backendUrl}/api/users/${id}`);

console.log(data);
// Attach user data to the request object
req.user = data;

Expand Down

0 comments on commit 1386591

Please sign in to comment.