Add basic credentials authentication

This commit is contained in:
Meier Lukas
2023-07-28 18:51:44 +02:00
parent d507f0807f
commit d7f6bdf417
11 changed files with 794 additions and 12 deletions

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