Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/app/users/after-sign-in/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ export async function GET(request: NextRequest) {
// callbackPath query param, so the value cannot be user-tampered. This
// runs exactly once per signup because has_validation_stytch is set
// after account verification completes.
const product = resolveSignupProduct(responsePath, !!url.searchParams.get('source'));
const product = resolveSignupProduct(
callbackPath && isValidCallbackPath(callbackPath) ? responsePath : null,
!!url.searchParams.get('source')
);
if (product) {
PostHogClient().capture({
distinctId: user.google_user_email,
Expand Down
Loading