Merge remote-tracking branch 'origin/main' into feat-admin-signup

This commit is contained in:
Salman
2024-02-14 23:46:25 +05:30
76 changed files with 995 additions and 5549 deletions
@@ -200,6 +200,17 @@ export const registerSignupRouter = async (server: FastifyZodProvider) => {
userAgent
});
void server.services.telemetry.sendLoopsEvent(user.email, user.firstName || "", user.lastName || "");
void server.services.telemetry.sendPostHogEvents({
event: PostHogEventTypes.UserSignedUp,
distinctId: user.email,
properties: {
email: user.email,
attributionSource: "Team Invite"
}
});
void res.setCookie("jid", refreshToken, {
httpOnly: true,
path: "/",