fix: clear aod cookie on sign out

This commit is contained in:
sidwebworks
2025-07-18 04:32:20 +05:30
parent bc98c42c79
commit c5c2e2619e

View File

@@ -42,6 +42,14 @@ export const registerAuthRoutes = async (server: FastifyZodProvider) => {
maxAge: 0
});
void res.cookie("aod", "", {
httpOnly: false,
path: "/",
sameSite: "lax",
secure: appCfg.HTTPS_ENABLED,
maxAge: 0
});
return { message: "Successfully logged out" };
}
});