@frogbotai/plugin-api-keys 0.6.0 → 0.8.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 +3 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@ export default buildConfig({
|
|
|
14
14
|
});
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
-
The plugin adds an `api-keys` collection, owner-scoped management endpoints, API-key authentication, and
|
|
17
|
+
The plugin adds an `api-keys` collection, owner-scoped management endpoints, API-key authentication, and default admin controls. `frogbot dev` generates the admin import map before starting, so the key-creation controls appear on the first load. Create a key in the API Keys admin collection, then authenticate requests with either header:
|
|
18
18
|
|
|
19
19
|
```http
|
|
20
20
|
Authorization: Bearer fbt_...
|
|
@@ -23,6 +23,8 @@ X-API-Key: fbt_...
|
|
|
23
23
|
|
|
24
24
|
Plaintext keys are returned only when created. The collection stores SHA-256 hashes and supports multiple independently revoked keys per user.
|
|
25
25
|
|
|
26
|
+
Build and start-only workflows must run `frogbot generate:importmap` after adding the plugin. Add it as a `prebuild` step when CI invokes `next build` directly. If the server console suggests `payload generate:importmap`, run `frogbot generate:importmap` instead, or restart `frogbot dev`.
|
|
27
|
+
|
|
26
28
|
```ts
|
|
27
29
|
apiKeysPlugin({
|
|
28
30
|
authCollection: 'accounts',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frogbotai/plugin-api-keys",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "Multiple named API keys for FrogBot.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Colby Gilbert",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@payloadcms/ui": "3.85.1",
|
|
34
34
|
"react": "^19.0.1 || ^19.1.2 || ^19.2.1",
|
|
35
35
|
"react-dom": "^19.0.1 || ^19.1.2 || ^19.2.1",
|
|
36
|
-
"frogbot": "0.
|
|
36
|
+
"frogbot": "0.8.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@payloadcms/ui": "3.85.1",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"react": "19.2.6",
|
|
42
42
|
"react-dom": "19.2.6",
|
|
43
43
|
"typescript": "5.6.2",
|
|
44
|
-
"frogbot": "0.
|
|
44
|
+
"frogbot": "0.8.0"
|
|
45
45
|
},
|
|
46
46
|
"publishConfig": {
|
|
47
47
|
"access": "public"
|