Can I use getServerSession with async await in Reactjs?
I'm trying to use getServerSession() in next.js like this: import Login from "./Login"; import Logged from "./Logged"; import { getServerSession } from "next-auth"; export default async function Nav() { const session = await getServerSession(); console.log(session.user); return ( <nav className="flex justify-end">…