@jskit-ai/auth-web 0.1.161 → 0.1.162

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jskit-ai/auth-web",
3
- "version": "0.1.161",
3
+ "version": "0.1.162",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "test": "node --test"
@@ -22,10 +22,10 @@
22
22
  "./test/playwright": "./src/test/playwright.js"
23
23
  },
24
24
  "dependencies": {
25
- "@jskit-ai/auth-core": "0.1.159",
26
- "@jskit-ai/http-runtime": "0.1.159",
27
- "@jskit-ai/kernel": "0.1.161",
28
- "@jskit-ai/shell-web": "0.1.165",
25
+ "@jskit-ai/auth-core": "0.1.160",
26
+ "@jskit-ai/http-runtime": "0.1.160",
27
+ "@jskit-ai/kernel": "0.1.162",
28
+ "@jskit-ai/shell-web": "0.1.166",
29
29
  "@mdi/js": "^7.4.47"
30
30
  },
31
31
  "peerDependencies": {
@@ -30,10 +30,13 @@ Use the views, auth guard, HTTP client integration, sign-out runtime, providers,
30
30
  and Playwright auth helper exported by `@jskit-ai/auth-web`. Use auth policies
31
31
  from `@jskit-ai/auth-core` for server authorization.
32
32
 
33
- For a Vibe64-managed preview, copy the app-owned
34
- `.vibe64/bin/preview-identity` executable and declare it in the project's
35
- Genesis Launch target. The executable calls the exported managed-preview
36
- identity library directly; it does not require a JSKIT CLI.
33
+ For a managed preview, copy the app-owned `tools/preview-identity` executable
34
+ and declare it in the project's Genesis Launch target with protocol
35
+ `genesis.preview-identity.command.v1`. Declare `AUTH_DEV_BYPASS_ENABLED` as its
36
+ Enabled environment and `AUTH_DEV_BYPASS_SECRET` as its Secret environment so
37
+ the preview host supplies fresh launch-scoped values; users do not set those
38
+ values by hand. The executable calls the exported managed-preview identity
39
+ library directly; it does not require a JSKIT CLI.
37
40
 
38
41
  Choose local-auth storage through the installed capability provider. A
39
42
  database-backed application installs `@jskit-ai/auth-provider-local-db-core`,
@@ -1,9 +1,9 @@
1
1
  import { DEV_AUTH_SECRET_HEADER } from "@jskit-ai/auth-core/server/devAuth";
2
2
  import { AUTH_PATHS } from "@jskit-ai/auth-core/shared/authPaths";
3
3
 
4
- const MANAGED_PREVIEW_IDENTITY_PROTOCOL = "vibe64.preview-identity.command.v1";
5
- const MANAGED_PREVIEW_IDENTITY_ENABLED_ENV = "VIBE64_PREVIEW_IDENTITY_ENABLED";
6
- const MANAGED_PREVIEW_IDENTITY_SECRET_ENV = "VIBE64_PREVIEW_IDENTITY_SECRET";
4
+ const MANAGED_PREVIEW_IDENTITY_PROTOCOL = "genesis.preview-identity.command.v1";
5
+ const MANAGED_PREVIEW_IDENTITY_ENABLED_ENV = "AUTH_DEV_BYPASS_ENABLED";
6
+ const MANAGED_PREVIEW_IDENTITY_SECRET_ENV = "AUTH_DEV_BYPASS_SECRET";
7
7
  const MAX_MESSAGE_BYTES = 64 * 1024;
8
8
 
9
9
  function commandError(message, code = "jskit_managed_preview_identity_failed", details = {}) {
@@ -41,8 +41,8 @@ test("managed preview identity signs out before selecting an existing applicatio
41
41
  target: { origin: "http://vibe64-launch-deadbeefcafe" }
42
42
  }, {
43
43
  env: {
44
- VIBE64_PREVIEW_IDENTITY_ENABLED: "true",
45
- VIBE64_PREVIEW_IDENTITY_SECRET: SECRET
44
+ AUTH_DEV_BYPASS_ENABLED: "true",
45
+ AUTH_DEV_BYPASS_SECRET: SECRET
46
46
  },
47
47
  fetchImpl: async (href, options) => {
48
48
  calls.push({ href, options });
@@ -79,8 +79,8 @@ test("managed preview identity rejects a disabled or non-local exchange", async
79
79
  target: { origin: "https://example.com" }
80
80
  }, {
81
81
  env: {
82
- VIBE64_PREVIEW_IDENTITY_ENABLED: "true",
83
- VIBE64_PREVIEW_IDENTITY_SECRET: SECRET
82
+ AUTH_DEV_BYPASS_ENABLED: "true",
83
+ AUTH_DEV_BYPASS_SECRET: SECRET
84
84
  },
85
85
  fetchImpl: async () => assert.fail("fetch must not run")
86
86
  });