LedeWire SDK API Reference
    Preparing search index...

    Interface StoredTokens

    Internal representation of stored authentication tokens.

    interface StoredTokens {
        accessToken: string;
        expiresAt: number;
        refreshToken: string;
        storeId?: string;
    }
    Index
    accessToken: string
    expiresAt: number

    Unix timestamp (ms) when the access token expires.

    refreshToken: string
    storeId?: string

    The store a store API-key session belongs to, from the store_id of the login or refresh response (never decoded from the token). Absent for every other kind of session.