Nextjs middleware session is null
Unanswered
Iridescent shark posted this in #help-forum
Iridescent sharkOP
I'm sending request to the route after I succesfully authorized, but session is null
export async function POST(req: any, res: any) {
const session = await getSession({ req: req });
console.log(session);
return NextResponse.json(
{
status: 201,
}
);
}