mirror of
https://github.com/ajnart/homarr.git
synced 2026-05-07 18:27:08 +02:00
✨ Add basic credentials authentication
This commit is contained in:
7
src/pages/auth/[...nextauth].ts
Normal file
7
src/pages/auth/[...nextauth].ts
Normal file
@@ -0,0 +1,7 @@
|
||||
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));
|
||||
}
|
||||
Reference in New Issue
Block a user