📜  安装 next-auth - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:00.942000             🧑  作者: Mango

代码示例3
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
) }