@frontmcp/auth 1.9.0 → 1.9.1-rc.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/esm/index.mjs
CHANGED
|
@@ -4745,9 +4745,8 @@ var VercelKvSessionStore = class {
|
|
|
4745
4745
|
});
|
|
4746
4746
|
try {
|
|
4747
4747
|
let parsed;
|
|
4748
|
-
const rawStr = typeof raw === "string" ? raw : JSON.stringify(raw);
|
|
4749
4748
|
if (this.security.enableSigning) {
|
|
4750
|
-
parsed = verifyOrParseSession(
|
|
4749
|
+
parsed = verifyOrParseSession(raw, { secret: this.security.signingSecret });
|
|
4751
4750
|
if (!parsed) {
|
|
4752
4751
|
this.logger?.warn("[VercelKvSessionStore] Session signature verification failed", {
|
|
4753
4752
|
sessionId: sessionId.slice(0, 20)
|
|
@@ -4756,7 +4755,7 @@ var VercelKvSessionStore = class {
|
|
|
4756
4755
|
return null;
|
|
4757
4756
|
}
|
|
4758
4757
|
} else {
|
|
4759
|
-
parsed =
|
|
4758
|
+
parsed = JSON.parse(raw);
|
|
4760
4759
|
}
|
|
4761
4760
|
const result = storedSessionSchema.safeParse(parsed);
|
|
4762
4761
|
if (!result.success) {
|
package/esm/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontmcp/auth",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.1-rc.1",
|
|
4
4
|
"description": "FrontMCP Auth - Authentication, session management, and credential vault",
|
|
5
5
|
"author": "AgentFront <info@agentfront.dev>",
|
|
6
6
|
"homepage": "https://docs.agentfront.dev",
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"node": ">=24.0.0"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@frontmcp/lazy-zod": "1.9.
|
|
51
|
-
"@frontmcp/storage-sqlite": "1.9.
|
|
50
|
+
"@frontmcp/lazy-zod": "1.9.1-rc.1",
|
|
51
|
+
"@frontmcp/storage-sqlite": "1.9.1-rc.1",
|
|
52
52
|
"@vercel/kv": "^3.0.0",
|
|
53
53
|
"ioredis": "^5.0.0"
|
|
54
54
|
},
|
|
@@ -64,8 +64,8 @@
|
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
|
-
"@frontmcp/di": "1.9.
|
|
68
|
-
"@frontmcp/utils": "1.9.
|
|
67
|
+
"@frontmcp/di": "1.9.1-rc.1",
|
|
68
|
+
"@frontmcp/utils": "1.9.1-rc.1",
|
|
69
69
|
"jose": "^6.0.0"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
package/index.js
CHANGED
|
@@ -5058,9 +5058,8 @@ var VercelKvSessionStore = class {
|
|
|
5058
5058
|
});
|
|
5059
5059
|
try {
|
|
5060
5060
|
let parsed;
|
|
5061
|
-
const rawStr = typeof raw === "string" ? raw : JSON.stringify(raw);
|
|
5062
5061
|
if (this.security.enableSigning) {
|
|
5063
|
-
parsed = verifyOrParseSession(
|
|
5062
|
+
parsed = verifyOrParseSession(raw, { secret: this.security.signingSecret });
|
|
5064
5063
|
if (!parsed) {
|
|
5065
5064
|
this.logger?.warn("[VercelKvSessionStore] Session signature verification failed", {
|
|
5066
5065
|
sessionId: sessionId.slice(0, 20)
|
|
@@ -5069,7 +5068,7 @@ var VercelKvSessionStore = class {
|
|
|
5069
5068
|
return null;
|
|
5070
5069
|
}
|
|
5071
5070
|
} else {
|
|
5072
|
-
parsed =
|
|
5071
|
+
parsed = JSON.parse(raw);
|
|
5073
5072
|
}
|
|
5074
5073
|
const result = storedSessionSchema.safeParse(parsed);
|
|
5075
5074
|
if (!result.success) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontmcp/auth",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.1-rc.1",
|
|
4
4
|
"description": "FrontMCP Auth - Authentication, session management, and credential vault",
|
|
5
5
|
"author": "AgentFront <info@agentfront.dev>",
|
|
6
6
|
"homepage": "https://docs.agentfront.dev",
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"node": ">=24.0.0"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@frontmcp/lazy-zod": "1.9.
|
|
51
|
-
"@frontmcp/storage-sqlite": "1.9.
|
|
50
|
+
"@frontmcp/lazy-zod": "1.9.1-rc.1",
|
|
51
|
+
"@frontmcp/storage-sqlite": "1.9.1-rc.1",
|
|
52
52
|
"@vercel/kv": "^3.0.0",
|
|
53
53
|
"ioredis": "^5.0.0"
|
|
54
54
|
},
|
|
@@ -64,8 +64,8 @@
|
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
|
-
"@frontmcp/di": "1.9.
|
|
68
|
-
"@frontmcp/utils": "1.9.
|
|
67
|
+
"@frontmcp/di": "1.9.1-rc.1",
|
|
68
|
+
"@frontmcp/utils": "1.9.1-rc.1",
|
|
69
69
|
"jose": "^6.0.0"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
*
|
|
13
13
|
* @see https://vercel.com/docs/storage/vercel-kv
|
|
14
14
|
*/
|
|
15
|
-
import { SessionStore, StoredSession, SessionSecurityConfig } from './transport-session.types';
|
|
16
15
|
import type { AuthLogger } from '../common/auth-logger.interface';
|
|
16
|
+
import { type SessionSecurityConfig, type SessionStore, type StoredSession } from './transport-session.types';
|
|
17
17
|
export interface VercelKvSessionConfig {
|
|
18
18
|
/**
|
|
19
19
|
* KV REST API URL
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vercel-kv-session.store.d.ts","sourceRoot":"","sources":["../../src/session/vercel-kv-session.store.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;
|
|
1
|
+
{"version":3,"file":"vercel-kv-session.store.d.ts","sourceRoot":"","sources":["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