diff --git a/src/Controllers/user_auth.controller.ts b/src/Controllers/user_auth.controller.ts index a029ff7..c2f02ef 100644 --- a/src/Controllers/user_auth.controller.ts +++ b/src/Controllers/user_auth.controller.ts @@ -205,11 +205,6 @@ export const verifyEmail = async (req: Request, res: Response) => { const token = generateTeamleaderJWT(team); - res.cookie("teamLeaderToken", token, { - path: "/", - maxAge: 1000 * 60 * 60 * 24 * 4, - }); - res.status(200).json({ type: "succes", payload: { token } }); } catch (e) { if (e instanceof PrismaClientKnownRequestError && e.code === "P2025") {