rebase fixing conflicts
This commit is contained in:
1 parent
11e1312e3a
commit
9a5c3f96ec
22 files changed
+694
-56
No files matched your search
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user