Immediately prompting for signin

currently I have this in home:

const Home: NextPage = () => {
  const { data: sessionData } = useSession();

  React.useEffect(() => {
    console.log(sessionData)
    if(!sessionData) {
      signIn()
    } else {
      signOut()
    }
  }, [])


but this is not working, I would like the user to sign in as soon as they hit the page and keep them logged in, however when they sign in, it asks them to sign again... always in a loop
Was this page helpful?