12 lines
290 B
TypeScript
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);
|