tenantpilot/app/api/auth/[...nextauth]/route.ts
2025-11-18 23:24:41 +01:00

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 };