eluv-io / elv-live-js

Eluvio Live JavaScript SDK
MIT License
4 stars 3 forks source link

add CLI query to view statestore app data, scoped by tenant #72

Open elv-todd opened 2 years ago

elv-todd commented 2 years ago

add support for elv-live CLI query to view statestore app data, scoped by tenant. (a tenant admin user using tenant auth.)

./elv-live tenant_appstatestore_query <tenant> <key> [user_address...]

here is a sample usage of app-scoped data in the statestore:

note: this requires the statestore to accept tenant auth before this will work.
see linked issue: https://github.com/qluvio/elv-appservices/issues/2

not a high priority for now, as we can view this data via DB admin privileges, and, I don't think the customer is asking for it yet.

elv-todd commented 2 years ago

WWE might not need this if they are simply using the API:

get saved meta

await rootStore.walletClient.ProfileMetadata({
  type: "app",
  mode: "private",
  appId: "itenYQbgk66W1BFEqWr95xPmHZEjmdF",
  key: "user-consent-iq__2FrA2S1XBy4zdRGQn1knakpbrBV4"
})