@leanmcp/auth 0.3.1 → 0.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@leanmcp/auth",
3
- "version": "0.3.1",
4
- "description": "Authentication and identity module supporting multiple providers",
3
+ "version": "0.4.0",
4
+ "description": "Authentication and identity module with OAuth 2.1 client, token storage, and multiple providers",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
7
7
  "types": "dist/index.d.ts",
@@ -10,6 +10,26 @@
10
10
  "types": "./dist/index.d.ts",
11
11
  "require": "./dist/index.js",
12
12
  "import": "./dist/index.mjs"
13
+ },
14
+ "./client": {
15
+ "types": "./dist/client/index.d.ts",
16
+ "require": "./dist/client/index.js",
17
+ "import": "./dist/client/index.mjs"
18
+ },
19
+ "./storage": {
20
+ "types": "./dist/storage/index.d.ts",
21
+ "require": "./dist/storage/index.js",
22
+ "import": "./dist/storage/index.mjs"
23
+ },
24
+ "./proxy": {
25
+ "types": "./dist/proxy/index.d.ts",
26
+ "require": "./dist/proxy/index.js",
27
+ "import": "./dist/proxy/index.mjs"
28
+ },
29
+ "./server": {
30
+ "types": "./dist/server/index.d.ts",
31
+ "require": "./dist/server/index.js",
32
+ "import": "./dist/server/index.mjs"
13
33
  }
14
34
  },
15
35
  "files": [
@@ -18,8 +38,8 @@
18
38
  "LICENSE"
19
39
  ],
20
40
  "scripts": {
21
- "build": "tsup src/index.ts --format esm,cjs --dts",
22
- "dev": "tsup src/index.ts --format esm,cjs --dts --watch",
41
+ "build": "tsup src/index.ts src/client/index.ts src/storage/index.ts src/proxy/index.ts src/server/index.ts --format esm,cjs --dts",
42
+ "dev": "tsup src/index.ts src/client/index.ts src/storage/index.ts src/proxy/index.ts src/server/index.ts --format esm,cjs --dts --watch",
23
43
  "test": "jest --passWithNoTests",
24
44
  "test:watch": "jest --watch"
25
45
  },
@@ -34,18 +54,26 @@
34
54
  "@types/node": "^20.0.0",
35
55
  "dotenv": "^17.2.3",
36
56
  "jest": "^29.7.0",
37
- "ts-jest": "^29.1.0"
57
+ "ts-jest": "^29.1.0",
58
+ "express": "^5.0.0"
38
59
  },
39
60
  "peerDependencies": {
40
61
  "@aws-sdk/client-cognito-identity-provider": "^3.0.0",
62
+ "@leanmcp/env-injection": "^0.1.0",
41
63
  "axios": "^1.0.0",
42
64
  "jsonwebtoken": "^9.0.0",
43
- "jwk-to-pem": "^2.0.0"
65
+ "jwk-to-pem": "^2.0.0",
66
+ "keytar": "^7.0.0",
67
+ "open": "^10.0.0",
68
+ "express": "^5.0.0"
44
69
  },
45
70
  "peerDependenciesMeta": {
46
71
  "@aws-sdk/client-cognito-identity-provider": {
47
72
  "optional": true
48
73
  },
74
+ "@leanmcp/env-injection": {
75
+ "optional": true
76
+ },
49
77
  "axios": {
50
78
  "optional": true
51
79
  },
@@ -54,6 +82,12 @@
54
82
  },
55
83
  "jwk-to-pem": {
56
84
  "optional": true
85
+ },
86
+ "keytar": {
87
+ "optional": true
88
+ },
89
+ "open": {
90
+ "optional": true
57
91
  }
58
92
  },
59
93
  "repository": {
@@ -73,11 +107,14 @@
73
107
  "authentication",
74
108
  "auth",
75
109
  "cognito",
76
- "jwt"
110
+ "jwt",
111
+ "oauth",
112
+ "pkce",
113
+ "oauth2"
77
114
  ],
78
115
  "author": "LeanMCP <admin@leanmcp.com>",
79
116
  "license": "MIT",
80
117
  "publishConfig": {
81
118
  "access": "public"
82
119
  }
83
- }
120
+ }