qoc, todo, document detail page

This commit is contained in:
Timur Ercan
2023-01-19 17:42:20 +01:00
parent 9d70459387
commit 7a3e19f627
4 changed files with 16 additions and 16 deletions

View File

@ -6,6 +6,7 @@ import { useSession } from "next-auth/react";
import { buffer } from "stream/consumers";
async function postHandler(req: NextApiRequest, res: NextApiResponse) {
// todo move token validation to import
const token = await getToken({ req });
const tokenEmail = token?.email?.toString();
if (!token) {