@snokam/auth 5.3.4 → 5.4.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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
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.4.0](https://github.com/snokam/components/compare/@snokam/auth@5.3.4...@snokam/auth@5.4.0) (2026-10-15)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- Vis som is a platform admin's everywhere; the admin sync stays prod-only ([#2958](https://github.com/snokam/components/issues/2958)) ([a2f9824](https://github.com/snokam/components/commit/a2f982455d1c19c2028e181ed109fe1f3485de90))
|
|
11
|
+
|
|
6
12
|
## [5.3.4](https://github.com/snokam/components/compare/@snokam/auth@5.3.3...@snokam/auth@5.3.4) (2026-10-15)
|
|
7
13
|
|
|
8
14
|
### Bug Fixes
|
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.
|
|
4
|
+
"version": "5.4.0",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"types": "src/index.ts",
|
|
7
7
|
"files": [
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
"next-auth": "4.24.15",
|
|
28
28
|
"path-to-regexp": "^8.4.2",
|
|
29
29
|
"@snokam/platform-client": "5.3.1",
|
|
30
|
-
"@snokam/react-query": "1.1.0",
|
|
31
30
|
"@snokam/sanity-page-content": "6.5.2",
|
|
31
|
+
"@snokam/react-query": "1.1.0",
|
|
32
32
|
"@snokam/tenant": "4.3.1",
|
|
33
|
-
"@snokam/
|
|
34
|
-
"@snokam/
|
|
33
|
+
"@snokam/ui": "6.1.0",
|
|
34
|
+
"@snokam/identity": "1.1.0"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"next": "16.3.8",
|
|
@@ -6,8 +6,6 @@ import { impersonationPickerUrl } from "../../impersonation/required";
|
|
|
6
6
|
|
|
7
7
|
const PICKER_BUSINESSES_PATH = "/api/impersonation/businesses";
|
|
8
8
|
|
|
9
|
-
// The picker's businesses route answers 200 only with persona mode on and an operator's own
|
|
10
|
-
// token, so a signed-in operator who is no employee here goes to pick a test user instead.
|
|
11
9
|
export function usePickerRedirect(): boolean {
|
|
12
10
|
const platformBaseUrl = useOptionalConfig()?.NEXT_PUBLIC_PLATFORM_BASE_URL;
|
|
13
11
|
const [checking, setChecking] = useState(Boolean(platformBaseUrl));
|