@authowl/next 0.2.7 → 0.2.9
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/dist/server.cjs +1 -1
- package/dist/server.js +1 -1
- package/package.json +6 -4
package/dist/server.cjs
CHANGED
|
@@ -73,7 +73,7 @@ function isTimeoutError(error) {
|
|
|
73
73
|
}
|
|
74
74
|
async function auth() {
|
|
75
75
|
const cfg = getConfig();
|
|
76
|
-
const projectId = cfg.publishableKey.split("_")[2];
|
|
76
|
+
const projectId = cfg.publishableKey.split("_")[2].toLowerCase();
|
|
77
77
|
const secure = new URL(cfg.apiUrl).protocol === "https:";
|
|
78
78
|
const cookieName = (0, import_server.sessionCookieName)(projectId, { secure });
|
|
79
79
|
const cookieStore = await (0, import_headers.cookies)();
|
package/dist/server.js
CHANGED
|
@@ -48,7 +48,7 @@ function isTimeoutError(error) {
|
|
|
48
48
|
}
|
|
49
49
|
async function auth() {
|
|
50
50
|
const cfg = getConfig();
|
|
51
|
-
const projectId = cfg.publishableKey.split("_")[2];
|
|
51
|
+
const projectId = cfg.publishableKey.split("_")[2].toLowerCase();
|
|
52
52
|
const secure = new URL(cfg.apiUrl).protocol === "https:";
|
|
53
53
|
const cookieName = sessionCookieName(projectId, { secure });
|
|
54
54
|
const cookieStore = await nextCookies();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@authowl/next",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.9",
|
|
4
4
|
"description": "Next.js (App Router) server helpers for AuthOwl, the multi-tenant auth SaaS.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"LICENSE"
|
|
52
52
|
],
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@authowl/core": "0.
|
|
54
|
+
"@authowl/core": "0.15.1"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
57
|
"next": ">=14"
|
|
@@ -59,11 +59,13 @@
|
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"next": "^15.1.3",
|
|
61
61
|
"tsup": "^8.3.5",
|
|
62
|
-
"typescript": "^5.7.2"
|
|
62
|
+
"typescript": "^5.7.2",
|
|
63
|
+
"vitest": "^4.1.10"
|
|
63
64
|
},
|
|
64
65
|
"scripts": {
|
|
65
66
|
"build": "tsup src/server.ts src/middleware.ts --format esm,cjs --dts --clean --external next && node ../../scripts/gen-notices.mjs src/server.ts src/middleware.ts",
|
|
66
67
|
"dev": "tsup src/server.ts src/middleware.ts --format esm,cjs --dts --watch --external next",
|
|
67
|
-
"typecheck": "tsc --noEmit"
|
|
68
|
+
"typecheck": "tsc --noEmit",
|
|
69
|
+
"test": "vitest run --passWithNoTests"
|
|
68
70
|
}
|
|
69
71
|
}
|