(req,res)
| 106 | }; |
| 107 | |
| 108 | export 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 | }; |