2
0
Files

14 lines
238 B
TypeScript
Raw Permalink Normal View History

2024-08-09 00:39:27 +02:00
import type { Session } from "next-auth";
type SessionOptions = {
ctx: {
session: Session | null;
};
};
export const sessionHandler = async ({ ctx }: SessionOptions) => {
return ctx.session;
};
export default sessionHandler;