Skip to content

Commit

Permalink
Fix PostHog frontend distinctId error (#609)
Browse files Browse the repository at this point in the history
* Refactor posthog and fix distinctId

* revert refactor changes
  • Loading branch information
luis-herasme authored Nov 25, 2024
1 parent 78a368b commit 91fbe0a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/api/src/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ export function createTRPCContext(
"Set-Cookie",
cookie.serialize("distinctId", distinctId, {
maxAge: 60 * 60 * 24 * 365,
httpOnly: false,
path: "/",
})
);
}
Expand Down

0 comments on commit 91fbe0a

Please sign in to comment.