mirror of
https://github.com/lukevella/rallly.git
synced 2025-07-30 22:49:03 +02:00
📈 Capture logout event + merge set and identify calls (#1211)
Signed-off-by: Luke Vella <me@lukevella.com>
This commit is contained in:
parent
c126cbdda1
commit
ba3008b3f2
3 changed files with 29 additions and 16 deletions
|
@ -174,7 +174,6 @@ const getAuthOptions = (...args: GetServerSessionParams) =>
|
|||
providers: providers,
|
||||
pages: {
|
||||
signIn: "/login",
|
||||
signOut: "/logout",
|
||||
error: "/auth/error",
|
||||
},
|
||||
events: {
|
||||
|
@ -193,12 +192,6 @@ const getAuthOptions = (...args: GetServerSessionParams) =>
|
|||
},
|
||||
});
|
||||
},
|
||||
signOut({ session }) {
|
||||
posthog?.capture({
|
||||
distinctId: session.user.id,
|
||||
event: "logout",
|
||||
});
|
||||
},
|
||||
},
|
||||
callbacks: {
|
||||
async signIn({ user, email, profile }) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue