useDelegationType
() => IdentityKitDelegationType.ACCOUNT | IdentityKitDelegationType.RELYING_PARTY
Equals IdentityKitDelegationType.ACCOUNT
if delegation has targets,
IdentityKitDelegationType.RELYING_PARTY
if delegation doesn’t have targets, and undefined
if
user is not connected or authType is set to IdentityKitAuthType.ACCOUNTS
:
Usage
import { useDelegationType } from "@nfid/identitykit/react"
const delegationType = useDelegationType()