@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
| Parameter | Type |
|---|---|
opts? | { authOrigin?: string; } |
opts.authOrigin? | string |
Returns
Promise<OcLinkedIdentity[]>