better-auth/apps/web/modules/saas/auth/lib/session-context.ts
 Илья Шалонин 8538ab969a first
2025-10-29 13:43:43 +05:00

12 lines
290 B
TypeScript

import type { Session } from "@repo/auth";
import React from "react";
export const SessionContext = React.createContext<
| {
session: Session["session"] | null;
user: Session["user"] | null;
loaded: boolean;
reloadSession: () => Promise<void>;
}
| undefined
>(undefined);