UNET API - v0.0.0
    Preparing search index...

    Type Alias UnetIdOptions

    type UnetIdOptions = {
        clientId: string;
        redirectUri: string;
        scopes?: string[];
        issuer?: string;
        storage?: StorageMode | KeyValueStore;
        fetch?: typeof __type;
        apiBase?: string;
        onTrace?: (trace: Trace) => void;
        navigate?: (url: string) => void;
        timeoutMs?: number;
        retries?: number;
        maxRetryDelayMs?: number;
    }
    Index
    clientId: string

    client_id of a public app from the UNET Developers Console.

    redirectUri: string

    Page of your app that calls handleRedirectCallback(). Must be registered as a return URL.

    scopes?: string[]

    Default: openid profile. Add offline_access to get refresh tokens.

    issuer?: string

    Where tokens live. session (default): cleared when the tab closes. local: survives restarts, but readable by any script on your origin (XSS) — use with a strict CSP. memory: lost on reload.

    fetch?: typeof __type
    apiBase?: string

    Core API origin for unet.api. Default: the issuer without its /oidc suffix.

    onTrace?: (trace: Trace) => void

    Called after every HTTP request the SDK makes (discovery, token, userinfo, API calls) with the request and response — tokens redacted. Meant for debug panels and logging.

    navigate?: (url: string) => void

    Navigation hook (defaults to location.assign). Mostly useful for tests.

    timeoutMs?: number

    Abort JSON API requests that take longer than this (default 60 000 ms; 0 = never). File uploads have no timeout.

    retries?: number

    Retry 429 (honours Retry-After) and, for GET, 5xx up to this many times. Default 0 (off).

    maxRetryDelayMs?: number

    Upper bound for one retry wait. Default 30 000 ms.