useIdentity
() => (Identity | PartialIdentity | undefined)
If IdentityKitProvider.authType is set to IdentityKitAuthType.DELEGATION value will contain
@icp-sdk/core identity after successful connection, will be undefined if other authType is
selected or user is not connected:
Usage
import { useIdentity } from "@nfid/identitykit/react"
const identity = useIdentity()