Capxul Docs
HooksIdentity & auth

useCapxulIdentity

Read the canonical identity state.

useCapxulIdentity() returns the Core SDK IdentityState union unchanged. Use its outer phase and nested account/Organization variants as the sole identity and readiness truth.

import { useCapxulIdentity } from "@capxul/sdk-react";

function IdentityStatus() {
  const identity = useCapxulIdentity();
  return <pre>{JSON.stringify(identity, null, 2)}</pre>;
}

The hook requires a ready CapxulProvider. It does not add loading flags, parallel session state, or a second error vocabulary.