rebase fixing conflicts

This commit is contained in:
Agusti Fernandez Pardo committed 2022-03-23 22:22:57 +01:00
1 parent 11e1312e3a
commit 9a5c3f96ec
22 files changed
+694 -56

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
import type { NextApiRequest, NextApiResponse } from "next";
import { getServerSession } from "next-auth";
import { authOptions } from "./auth/[...nextauth]";
export default async function session(req: NextApiRequest, res: NextApiResponse) {
const session = await getServerSession({ req, res }, authOptions);
/* ... */
if (session) {
res.send(JSON.stringify(session, null, 2));
} else {
res.end();
}
}