@snokam/auth 5.1.0 → 5.2.1

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/CHANGELOG.md CHANGED
@@ -3,12 +3,28 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [5.2.1](https://github.com/snokam/components/compare/@snokam/auth@5.2.0...@snokam/auth@5.2.1) (2026-10-14)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **platform-web:** show persona photos in the Vis som picker ([#2939](https://github.com/snokam/components/issues/2939)) ([125a20b](https://github.com/snokam/components/commit/125a20bdee81b673ace57d27541507bbbe6f6fbd))
11
+
12
+ # [5.2.0](https://github.com/snokam/components/compare/@snokam/auth@5.0.0...@snokam/auth@5.2.0) (2026-10-14)
13
+
14
+ ### Features
15
+
16
+ - company-first Vis som picker (test identity P3) ([#2917](https://github.com/snokam/components/issues/2917)) ([6098d44](https://github.com/snokam/components/commit/6098d446d91f630a360633615e6c4c0e81c9985f))
17
+
6
18
  # [5.1.0](https://github.com/snokam/components/compare/@snokam/auth@5.0.0...@snokam/auth@5.1.0) (2026-10-14)
7
19
 
8
20
  ### Features
9
21
 
10
22
  - company-first Vis som picker (test identity P3) ([#2917](https://github.com/snokam/components/issues/2917)) ([6098d44](https://github.com/snokam/components/commit/6098d446d91f630a360633615e6c4c0e81c9985f))
11
23
 
24
+ ## [5.0.2](https://github.com/snokam/components/compare/@snokam/auth@5.0.0...@snokam/auth@5.0.2) (2026-10-14)
25
+
26
+ **Note:** Version bump only for package @snokam/auth
27
+
12
28
  ## [5.0.1](https://github.com/snokam/components/compare/@snokam/auth@5.0.0...@snokam/auth@5.0.1) (2026-10-14)
13
29
 
14
30
  **Note:** Version bump only for package @snokam/auth
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@snokam/auth",
3
3
  "description": "Snøkam auth components",
4
- "version": "5.1.0",
4
+ "version": "5.2.1",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
7
7
  "files": [
@@ -28,10 +28,10 @@
28
28
  "path-to-regexp": "^8.4.2",
29
29
  "@snokam/identity": "1.1.0",
30
30
  "@snokam/react-query": "1.1.0",
31
- "@snokam/platform-client": "5.1.0",
32
- "@snokam/sanity-page-content": "6.2.0",
33
- "@snokam/tenant": "4.1.0",
34
- "@snokam/ui": "6.0.1"
31
+ "@snokam/sanity-page-content": "6.4.0",
32
+ "@snokam/tenant": "4.2.0",
33
+ "@snokam/ui": "6.0.3",
34
+ "@snokam/platform-client": "5.2.0"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "next": "16.3.8",
@@ -1,26 +1,8 @@
1
- import type { ProtectedEmployee } from "@snokam/platform-client";
2
1
  import { Auth } from "../types";
3
2
  import { resolveAccessToken } from "../route-handler/token";
4
3
  import { platformCall, platformClient, platformNotConfigured } from "./request";
5
4
  import { hostOwner } from "../handoff/business";
6
5
 
7
- function persona(employee: ProtectedEmployee) {
8
- return {
9
- name: employee.name,
10
- email: employee.email,
11
- position: employee.position,
12
- about: employee.about,
13
- active: employee.active,
14
- isBot: employee.isBot,
15
- image: { asset: { url: employee.image?.asset?.url } },
16
- scopeGrants: employee.scopeGrants,
17
- groups: (employee.groups ?? []).map((group) => ({
18
- name: group.name,
19
- scopeGrants: group.scopeGrants,
20
- })),
21
- };
22
- }
23
-
24
6
  interface ReturnBusiness {
25
7
  id: string;
26
8
  displayName: string | null;
@@ -86,7 +68,7 @@ export function createPickerPeopleHandler(authConfig: Auth.Config) {
86
68
 
87
69
  return Response.json({
88
70
  kind: people.value.kind,
89
- people: (people.value.people ?? []).map(persona),
71
+ people: people.value.people ?? [],
90
72
  });
91
73
  };
92
74
  }