Rustam
Rustam
BABetter Auth
Created by Rustam on 4/14/2025 in #help
Posthog identify after sign up
I ended up setting a query param on the callbackURL ( callbackURL: '/dashboard?isNewUser=true'). And then checking if isNewUser is set on the URL before calling identify. Posthog recommends to only call identify when the user signs up / logs in and doesn't recommend to do it on every request.
9 replies
BABetter Auth
Created by Rustam on 4/14/2025 in #help
Posthog identify after sign up
Oh actually i realised that this hook also runs on the server side which is similar to the hook I mentioned in the post. Any way to know when a client has signed up or created a session on the client side? I can imagine it can be a query parameter to the callback url after email verification or something
9 replies
BABetter Auth
Created by Rustam on 4/14/2025 in #help
Posthog identify after sign up
Oh I didn’t know it existed! That’s perfect thank you!
9 replies