Tools
SDK React
useIsLoggedIn

useIsLoggedIn

Hook to detect if an address is currently logged in on the Liteflow infrastructure.

Usage

import { useIsLoggedIn } from '@liteflow/react'
import { useAccount } from 'wagmi'
 
export default function Component() {
  const { address } = useAccount()
  const isLoggedIn = useIsLoggedIn(address)
 
  return (
    <div>
      User {address}: {isLoggedIn ? 'logged in' : 'not logged in'}
    </div>
  )
}

Configuration

useIsLoggedIn(address: string | undefined)

Return value

boolean