using useSession hook
is it good to call useSession many times or make useSession globally, im still kinda new so need a lot of advice and guidance thanksss
const session = await unstable_getServerSession(req, res, authOptions);
if (!session || !session.user) {
return {
redirect: {
destination: "/sign-in",
permanent: false,
},
};
}