mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
11 lines
417 B
TypeScript
11 lines
417 B
TypeScript
import type { NextApiRequest, NextApiResponse } from "next";
|
|
import NextAuth from "next-auth";
|
|
// auth
|
|
// import { getNextAuthOptions } from "@plane/lib";
|
|
|
|
export default async function auth(req: NextApiRequest, res: NextApiResponse) {
|
|
// const authOptions = getAuthOptions(req, res);
|
|
// Do whatever you want here, before the request is passed down to `NextAuth`
|
|
return await NextAuth(req, res, authOptions);
|
|
}
|