@twinfinity/core
    Preparing search index...

    Type Alias PopupWindowOptions

    type PopupWindowOptions = {
        height?: number;
        position?: PopupWindowPosition;
        signal?: AbortSignal;
        timeoutMs?: number;
        width?: number;
    }
    Index

    Properties

    height?: number

    Defaults to 'center-window'.

    signal?: AbortSignal

    An optional AbortSignal the caller can use to cancel an in-progress login, e.g. when the user dismisses a "signing in…" dialog in the app. Aborting closes the popup and rejects establishUsingPopup with a TwinfinitySessionError carrying cause: 'cancelled', which lets callers tell a deliberate cancellation apart from a real failure. A signal that is already aborted when login starts rejects immediately without opening a popup. Has no effect once the login has settled.

    timeoutMs?: number

    Optional upper bound, in milliseconds, on how long the login may take before it rejects with a TwinfinitySessionError carrying cause: 'timeout'. Defaults to no timeout: the user drives a popup login and a popup the user closes is already detected (see POPUP_CLOSED_POLL_INTERVAL_MS). Set this if you want a hard upper bound regardless.

    width?: number