MCPcopy Create free account
hub / github.com/Jenifer2833/fullstack-chat-app / checkAuth

Function checkAuth

backend/src/controllers/auth.controller.js:108–115  ·  view source on GitHub ↗
(req,res)

Source from the content-addressed store, hash-verified

106};
107
108export const checkAuth=(req,res)=>{
109 try{
110 res.status(200).json(req.user);
111 }catch(error){
112 console.log("Error in checkAuth controller", error.message);
113 res.status(500).json({message:"Internal Server Error"});
114 }
115};

Callers 1

AppFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected