mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-10 07:25:48 +01:00
8 lines
294 B
TypeScript
8 lines
294 B
TypeScript
import { NextApiRequest, NextApiResponse } from 'next';
|
|
import NextAuth from 'next-auth';
|
|
import { constructAuthOptions } from '~/server/auth';
|
|
|
|
export default async function auth(req: NextApiRequest, res: NextApiResponse) {
|
|
return await NextAuth(req, res, constructAuthOptions(req, res));
|
|
}
|