9b21f8d322
Vercel integration Desc + Vid coming soon For human reviewer: - check the db schema - check if posthog user attribution call is correct (telemetry.server.ts & `referralSource`) <!-- devin-review-badge-begin --> --- <a href="https://app.devin.ai/review/triggerdotdev/trigger.dev/pull/2994" target="_blank"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://static.devin.ai/assets/gh-open-in-devin-review-dark.svg?v=1"> <img src="https://static.devin.ai/assets/gh-open-in-devin-review-light.svg?v=1" alt="Open with Devin"> </picture> </a> <!-- devin-review-badge-end -->
18 lines
330 B
TypeScript
18 lines
330 B
TypeScript
import type { User } from "~/models/user.server";
|
|
import { telemetry } from "./telemetry.server";
|
|
|
|
export async function postAuthentication({
|
|
user,
|
|
loginMethod,
|
|
isNewUser,
|
|
}: {
|
|
user: User;
|
|
loginMethod: User["authenticationMethod"];
|
|
isNewUser: boolean;
|
|
}) {
|
|
telemetry.user.identify({
|
|
user,
|
|
isNewUser,
|
|
});
|
|
}
|