Spaces:
Runtime error
Runtime error
File size: 354 Bytes
cd6f98e | 1 2 3 4 5 6 7 8 9 10 11 12 | import type { NextApiRequest, NextApiResponse } from "next";
import NextAuth from "next-auth";
import { authOptions } from "../../../server/auth";
const auth = (req: NextApiRequest, res: NextApiResponse) => {
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
return NextAuth(req, res, authOptions(req, res));
};
export default auth;
|