live · mainnetoc · docs
specs · api · guides
docs / documentation

@orangecheck/auth-client


@orangecheck/auth-client / fetchOcLinkedIdentities

Function: fetchOcLinkedIdentities()

function fetchOcLinkedIdentities(opts?: {
  authOrigin?: string;
}): Promise<OcLinkedIdentity[]>;

Defined in: linked-identities.tsx:70

Fetch the signed-in user's linked identities from the auth host — the same data <OcLinkedIdentities> renders, exposed as a plain function for surfaces that need the list without the full management UI (notably <OcAccountMenu>'s badge-identity promote list). Returns [] when anonymous; throws on network / server error so the caller can show a deferred state.

Parameters

ParameterType
opts?&#123; authOrigin?: string; &#125;
opts.authOrigin?string

Returns

Promise&lt;OcLinkedIdentity[]>