MCPcopy
hub / github.com/langfuse/langfuse / Session

Interface Session

web/types/next-auth.d.ts:19–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17 */
18declare module "next-auth" {
19 interface Session extends DefaultSession {
20 user: User | null; // null if user does not exist anymore in the database but has active jwt
21 environment: {
22 // Run-time environment variables that need to be available client-side
23 enableExperimentalFeatures: boolean;
24 // Enables features that are only available under an enterprise/commercial license when self-hosting Langfuse
25 selfHostedInstancePlan: Plan | null;
26 // V4 migration write mode. Mirrors LANGFUSE_MIGRATION_V4_WRITE_MODE so the
27 // client can tell whether the legacy traces/observations tables are still
28 // written and gate the V4 preview / legacy experiences accordingly.
29 // Optional so existing session mocks need not set it; the real session
30 // callback always populates it.
31 v4WriteMode?: "legacy" | "dual" | "events_only";
32 };
33 }
34
35 interface User extends DefaultUser {
36 id: PrismaUser["id"];

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…