import { getSession } from “next-auth/react”;
const session = await getSession({ req }); // session is coming as null
[next-auth][error][CLIENT_FETCH_ERROR]
https://next-auth.js.org/errors#client_fetch_error undefined {
error: {},
url: ‘http://localhost:3000/api/auth/session’,
message: undefined
}
Abhay Bharti Asked question May 7, 2023