15 lines
335 B
TypeScript
15 lines
335 B
TypeScript
import { DefaultSession } from "next-auth";
|
|
import NextAuth from "next-auth/next";
|
|
import { authOptions } from "@/lib/auth/utils";
|
|
|
|
declare module "next-auth" {
|
|
interface Session {
|
|
user: DefaultSession["user"] & {
|
|
id: string;
|
|
};
|
|
}
|
|
}
|
|
|
|
const handler = NextAuth(authOptions);
|
|
export { handler as GET, handler as POST };
|