(req,res)
| 77 | }; |
| 78 | |
| 79 | export const logout= (req,res)=>{ |
| 80 | try{ |
| 81 | res.cookie("jwt","",{maxAge:0}); |
| 82 | res.status(200).json({message:"Logged Out successfully"}); |
| 83 | }catch(error){ |
| 84 | console.log("Error in logout controller", error.message); |
| 85 | res.status(500).json({message:"Internal Server Error"}); |
| 86 | } |
| 87 | }; |
| 88 | |
| 89 | export const updateProfile= async(req,res)=>{ |
| 90 | try{ |
nothing calls this directly
no outgoing calls
no test coverage detected