@deslop/auth 0.1.1258 → 0.1.1260

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
@@ -7,10 +7,4 @@ npm install --global @deslop/auth
7
7
  auth service install --url https://auth.mp281x.xyz --auth https://auth.mp281x.xyz --admins <github-id> --github-client-id <id>
8
8
  ```
9
9
 
10
- - **Secret**: `GITHUB_CLIENT_SECRET` in `~/.deslop/auth.env`.
11
- - **MCP** at `/mcp`: `answer_request` approves a sign-in by its code.
12
- - **Access tokens**: ten-minute Ed25519 JWTs, valid across Deslop apps; public keys at `/.well-known/jwks.json`.
13
- - **Commands**: a command without a browser signs in with RFC 8628's device code at `/api/auth/oauth2/device_authorization`; its code is approved like any other, in Auth or with `answer_request`.
14
- - **Web sign-in**: Auth keeps a host-only browser session and immediately authorizes Deslop web callbacks. Signing that browser out also ends the app sessions it started.
15
-
16
10
  Common flags and service commands: [Deslop app runtime](https://github.com/MP281X/deslop/blob/main/packages/runtime/README.md).
package/dist/server.js CHANGED
@@ -92147,7 +92147,6 @@ var AiGateway = class AiGateway extends Service$1()("@deslop/runtime/ai/service/
92147
92147
  const gateway = yield* option(String$5("GATEWAY_URL"));
92148
92148
  const local = yield* localAuth;
92149
92149
  const sessions = yield* Sessions;
92150
- yield* (yield* KeyValueStore).remove("ai-gateway-grants");
92151
92150
  return AiGateway.of({
92152
92151
  apiUrl: (provider) => match$8(gateway, {
92153
92152
  onNone: () => fail$8(AiUnavailable.make({ message: "Start the app with --gateway" })),
@@ -114743,7 +114742,6 @@ function end(grants, family) {
114743
114742
  var Tokens = class Tokens extends Service$1()("@deslop/auth/services/tokens/service/Tokens") {
114744
114743
  static layer = effect(Tokens, gen(function* () {
114745
114744
  const storage = yield* KeyValueStore;
114746
- yield* storage.remove("grants");
114747
114745
  const store = toSchemaStore(storage, Grants);
114748
114746
  const grants = yield* make$18(getOrElse(yield* store.get("sign-ins"), () => ({})));
114749
114747
  const issuer = `${new URL(yield* String$5("APP_URL")).origin}${ISSUER_PATH}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deslop/auth",
3
- "version": "0.1.1258",
3
+ "version": "0.1.1260",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/MP281X/deslop.git",
@@ -33,5 +33,5 @@
33
33
  "engines": {
34
34
  "node": ">=26"
35
35
  },
36
- "fingerprint": "bdfcb0b3975e6312e4e4edf1930f68f998ee70a1eb1e29e46dd49cc1cb70506b"
36
+ "fingerprint": "916211bbb1927165ab4766455090060fa9056e80dcc2261ad2d4c1bf59a18d49"
37
37
  }