@gjermundgaraba/clankerauth-sdk 0.26.3 → 0.28.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/package.json +3 -3
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@ vp add effect
|
|
|
17
17
|
The `/session` and `/effect-actions` entry points also need effect-actions, an optional peer. Install this range: the SDK's declarations are built against it, and under `skipLibCheck` they silently degrade to `any` with another.
|
|
18
18
|
|
|
19
19
|
```sh
|
|
20
|
-
vp add @gjermundgaraba/effect-actions@^0.
|
|
20
|
+
vp add @gjermundgaraba/effect-actions@^0.19.0
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
## Entry points
|
|
@@ -36,7 +36,7 @@ The package is free of side effects, so a bundler drops what a page does not use
|
|
|
36
36
|
|
|
37
37
|
## Call an application from a program
|
|
38
38
|
|
|
39
|
-
A program calling an application behind clankerauth, such as the application's own CLI, takes its bearer token from `token` of `/credentials`, or has `authorizing` send it with each request. The owner signs in once with `clankerauth login https://notes.internal`, which reads the resource, its issuer and its scopes from the application's `/.well-known/oauth-protected-resource`; `token` then refreshes that sign-in as it expires. A token the environment gives, an access token or an API key, is returned instead when it is set, so the same program runs unattended.
|
|
39
|
+
A program calling an application behind clankerauth, such as the application's own CLI, takes its bearer token from `token` of `/credentials`, or has `authorizing` send it with each request. The owner signs in once with `clankerauth login https://notes.internal`, which reads the resource, its issuer and its scopes from the application's `/.well-known/oauth-protected-resource`; `token` then refreshes that sign-in as it expires. A token the environment gives, an access token or an API key, is returned instead when it is set, so the same program runs unattended. The program names the variable with `token`; nothing is read from the environment without it. To administer an issuer, the convention is `CLANKERAUTH_TOKEN` holding an administration key, an API key granted on the issuer's origin root, which the `clankerauth` command reads too.
|
|
40
40
|
|
|
41
41
|
```ts
|
|
42
42
|
import { Config, Effect } from "effect";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gjermundgaraba/clankerauth-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.28.0",
|
|
4
4
|
"description": "Effect-native clankerauth access-token and offline API-key verification, with optional effect-actions integration",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@effect/vitest": "4.0.5",
|
|
56
|
-
"@gjermundgaraba/effect-actions": "0.
|
|
56
|
+
"@gjermundgaraba/effect-actions": "0.19.0",
|
|
57
57
|
"@modelcontextprotocol/client": "2.3.1",
|
|
58
58
|
"@types/node": "26.6.5",
|
|
59
59
|
"@types/proper-lockfile": "4.1.4",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"vitest": "5.0.5"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
67
|
-
"@gjermundgaraba/effect-actions": "^0.
|
|
67
|
+
"@gjermundgaraba/effect-actions": "^0.19.0",
|
|
68
68
|
"effect": "~4.0.4"
|
|
69
69
|
},
|
|
70
70
|
"peerDependenciesMeta": {
|