@jskit-ai/auth-web 0.1.149 → 0.1.152

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.149",
3
+ "version": "0.1.152",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "test": "node --test"
@@ -20,10 +20,10 @@
20
20
  "./test/playwright": "./src/test/playwright.js"
21
21
  },
22
22
  "dependencies": {
23
- "@jskit-ai/auth-core": "0.1.147",
24
- "@jskit-ai/http-runtime": "0.1.147",
25
- "@jskit-ai/kernel": "0.1.149",
26
- "@jskit-ai/shell-web": "0.1.153",
23
+ "@jskit-ai/auth-core": "0.1.150",
24
+ "@jskit-ai/http-runtime": "0.1.150",
25
+ "@jskit-ai/kernel": "0.1.152",
26
+ "@jskit-ai/shell-web": "0.1.156",
27
27
  "@mdi/js": "^7.4.47"
28
28
  },
29
29
  "peerDependencies": {
@@ -300,10 +300,10 @@
300
300
  "dependencies": {
301
301
  "runtime": {
302
302
  "@mdi/js": "^7.4.47",
303
- "@jskit-ai/auth-core": "0.1.147",
304
- "@jskit-ai/http-runtime": "0.1.147",
305
- "@jskit-ai/kernel": "0.1.149",
306
- "@jskit-ai/shell-web": "0.1.153"
303
+ "@jskit-ai/auth-core": "0.1.150",
304
+ "@jskit-ai/http-runtime": "0.1.150",
305
+ "@jskit-ai/kernel": "0.1.152",
306
+ "@jskit-ai/shell-web": "0.1.156"
307
307
  },
308
308
  "dev": {}
309
309
  },
@@ -31,7 +31,7 @@ class AuthController {
31
31
 
32
32
  reply.code(201).send({
33
33
  ok: true,
34
- username: result.profile.displayName,
34
+ username: result.actor.displayName,
35
35
  requiresEmailConfirmation: false
36
36
  });
37
37
  }
@@ -50,7 +50,7 @@ class AuthController {
50
50
 
51
51
  reply.code(200).send({
52
52
  ok: true,
53
- username: result.profile.displayName
53
+ username: result.actor.displayName
54
54
  });
55
55
  }
56
56
 
@@ -67,8 +67,8 @@ class AuthController {
67
67
  this.service.writeSessionCookies(reply, result.session);
68
68
  reply.code(200).send({
69
69
  ok: true,
70
- username: result.profile.displayName,
71
- email: result.profile.email
70
+ username: result.actor.displayName,
71
+ email: result.actor.email
72
72
  });
73
73
  }
74
74
 
@@ -87,8 +87,8 @@ class AuthController {
87
87
  reply.code(200).send({
88
88
  ok: true,
89
89
  provider: result.provider,
90
- username: result.profile.displayName,
91
- email: result.profile.email
90
+ username: result.actor.displayName,
91
+ email: result.actor.email
92
92
  });
93
93
  }
94
94
 
@@ -98,9 +98,9 @@ class AuthController {
98
98
  this.service.writeSessionCookies(reply, result.session);
99
99
  reply.code(200).send({
100
100
  ok: true,
101
- userId: result.profile.id,
102
- username: result.profile.displayName,
103
- email: result.profile.email
101
+ userId: result.actor.id,
102
+ username: result.actor.displayName,
103
+ email: result.actor.email
104
104
  });
105
105
  }
106
106
 
@@ -159,8 +159,8 @@ class AuthController {
159
159
 
160
160
  reply.code(200).send({
161
161
  authenticated: true,
162
- username: authResult.profile.displayName,
163
- email: authResult.profile.email,
162
+ username: authResult.actor.displayName,
163
+ email: authResult.actor.email,
164
164
  permissions: Array.isArray(authResult.permissions) ? authResult.permissions : [],
165
165
  csrfToken,
166
166
  ...oauthCatalogPayload
@@ -73,13 +73,13 @@ test("auth route provider registers routes and executes login/logout handlers",
73
73
  if (actionId === "auth.login.password") {
74
74
  return {
75
75
  session: { access_token: "a", refresh_token: "r" },
76
- profile: { displayName: "Ada" }
76
+ actor: { displayName: "Ada" }
77
77
  };
78
78
  }
79
79
  if (actionId === "auth.dev.loginAs") {
80
80
  return {
81
81
  session: { access_token: "dev-a", refresh_token: "dev-r" },
82
- profile: { id: "7", displayName: "Dev Ada", email: "ada@example.com" }
82
+ actor: { id: "7", displayName: "Dev Ada", email: "ada@example.com" }
83
83
  };
84
84
  }
85
85
  if (actionId === "auth.logout") {
@@ -154,7 +154,7 @@ test("auth route provider registers dev login route only when dev auth bypass is
154
154
  if (actionId === "auth.dev.loginAs") {
155
155
  return {
156
156
  session: { access_token: "dev-a", refresh_token: "dev-r" },
157
- profile: { id: "7", displayName: "Dev Ada", email: "ada@example.com" }
157
+ actor: { id: "7", displayName: "Dev Ada", email: "ada@example.com" }
158
158
  };
159
159
  }
160
160
  return {};
@@ -201,7 +201,7 @@ test("auth route provider does not resolve authService during boot", async () =>
201
201
  if (actionId === "auth.login.password") {
202
202
  return {
203
203
  session: { access_token: "a", refresh_token: "r" },
204
- profile: { displayName: "Ada" }
204
+ actor: { displayName: "Ada" }
205
205
  };
206
206
  }
207
207
  return {};
@@ -67,7 +67,7 @@ test("resolveSurfaceLinkTarget returns explicit target unchanged", () => {
67
67
  assert.equal(to, "/custom/target");
68
68
  });
69
69
 
70
- test("resolveSurfaceLinkTarget no longer requires workspace slug for surface links", () => {
70
+ test("resolveSurfaceLinkTarget resolves surface links without a workspace slug", () => {
71
71
  const to = resolveSurfaceLinkTarget({
72
72
  context: {
73
73
  surfaceConfig: createPlacementContext().surfaceConfig