@hyper.authio/admin 0.9.0 → 0.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -132,8 +132,8 @@ await admin.resourceServer.create({
132
132
  body: { identifier: "https://orders.example.com", name: "Orders API", scopes: [{ name: "orders:read" }], clientIds: [created.id!] },
133
133
  });
134
134
 
135
- // Consumers (machine callers of a client)
136
- await admin.clientConsumer.create({ realm, client: "storefront", body: { name: "billing-worker", type: "ApiKey", value: "a-long-random-value" } });
135
+ // Consumers (machine callers of a client): Authio generates the credential, and consumer.value is the one place it is shown
136
+ const consumer = await admin.clientConsumer.create({ realm, client: "storefront", body: { name: "billing-worker", type: "ApiKey" } });
137
137
 
138
138
  // Account credentials (ak_, cs_, pat_): the answer is the only one that carries the value
139
139
  const credential = await admin.secret.create({ body: { name: "ci", type: "PersonalAccessToken", allowedScopeIds: [] } });