LedeWire SDK API Reference
    Preparing search index...

    Interface MerchantLoginResult

    Result returned by the one-step login-and-discover helpers. Contains normalized stored tokens and the list of stores the authenticated user can manage, sourced directly from the login response.

    interface MerchantLoginResult {
        stores: { id: string; name: string; role: "owner" | "author" }[];
        tokens: StoredTokens;
    }
    Index

    Properties

    Properties

    stores: { id: string; name: string; role: "owner" | "author" }[]

    Stores the authenticated user can manage. Sourced from the login response — no additional network request needed.

    Type Declaration

    • id: string
    • name: string
    • role: "owner" | "author"

      Derived role. owner if the user owns this store; author if they have author permissions only.

    tokens: StoredTokens

    Normalized tokens in the same coordinate system as TokenStorage. Fields are camelCase and expiresAt is a Unix ms timestamp — ready to pass directly to a storage adapter without any remapping.