@hyper.authio/admin 0.9.0 → 0.10.0
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 +2 -2
- package/dist/index.cjs +240 -33
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +24746 -11367
- package/dist/index.d.ts +24746 -11367
- package/dist/index.js +240 -33
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
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"
|
|
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: [] } });
|