📅  最后修改于: 2022-03-11 14:51:00.942000             🧑  作者: Mango
import { useSession, signIn, signOut } from "next-auth/client"
export default function Component() {
const [session, loading] = useSession()
if (session) {
return (
<>
Signed in as {session.user.email}
>
)
}
return (
<>
Not signed in
>
)
}