@tinyrack/tinyauth-server 0.0.11 → 0.0.12
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/LICENSE +21 -0
- package/package.json +54 -155
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 tinyrack
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinyrack/tinyauth-server",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.12",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "OpenID Connect Provider with OAuth2 support",
|
|
6
6
|
"license": "MIT",
|
|
@@ -13,181 +13,130 @@
|
|
|
13
13
|
"public",
|
|
14
14
|
"dist"
|
|
15
15
|
],
|
|
16
|
-
"publishConfig": {
|
|
17
|
-
"exports": {
|
|
18
|
-
".": {
|
|
19
|
-
"types": "./dist/entrypoints/index.d.ts",
|
|
20
|
-
"default": "./dist/entrypoints/index.js"
|
|
21
|
-
},
|
|
22
|
-
"./config": {
|
|
23
|
-
"types": "./dist/entrypoints/config/index.d.ts",
|
|
24
|
-
"default": "./dist/entrypoints/config/index.js"
|
|
25
|
-
},
|
|
26
|
-
"./services": {
|
|
27
|
-
"types": "./dist/entrypoints/services.d.ts",
|
|
28
|
-
"default": "./dist/entrypoints/services.js"
|
|
29
|
-
},
|
|
30
|
-
"./database/postgres": {
|
|
31
|
-
"types": "./dist/entrypoints/database/postgres/postgres.d.ts",
|
|
32
|
-
"default": "./dist/entrypoints/database/postgres/postgres.js"
|
|
33
|
-
},
|
|
34
|
-
"./database/sqlite": {
|
|
35
|
-
"types": "./dist/entrypoints/database/sqlite/sqlite.d.ts",
|
|
36
|
-
"default": "./dist/entrypoints/database/sqlite/sqlite.js"
|
|
37
|
-
},
|
|
38
|
-
"./database/d1": {
|
|
39
|
-
"types": "./dist/entrypoints/database/d1/d1.d.ts",
|
|
40
|
-
"default": "./dist/entrypoints/database/d1/d1.js"
|
|
41
|
-
},
|
|
42
|
-
"./mail/nodemailer": {
|
|
43
|
-
"types": "./dist/entrypoints/mail/nodemailer.d.ts",
|
|
44
|
-
"default": "./dist/entrypoints/mail/nodemailer.js"
|
|
45
|
-
},
|
|
46
|
-
"./scheduler/croner": {
|
|
47
|
-
"types": "./dist/entrypoints/scheduler/croner.d.ts",
|
|
48
|
-
"default": "./dist/entrypoints/scheduler/croner.js"
|
|
49
|
-
},
|
|
50
|
-
"./identity-providers/github": {
|
|
51
|
-
"types": "./dist/entrypoints/identity-providers/github.d.ts",
|
|
52
|
-
"default": "./dist/entrypoints/identity-providers/github.js"
|
|
53
|
-
},
|
|
54
|
-
"./identity-providers/google": {
|
|
55
|
-
"types": "./dist/entrypoints/identity-providers/google.d.ts",
|
|
56
|
-
"default": "./dist/entrypoints/identity-providers/google.js"
|
|
57
|
-
},
|
|
58
|
-
"./identity-providers/apple": {
|
|
59
|
-
"types": "./dist/entrypoints/identity-providers/apple.d.ts",
|
|
60
|
-
"default": "./dist/entrypoints/identity-providers/apple.js"
|
|
61
|
-
},
|
|
62
|
-
"./identity-providers/generic-oauth": {
|
|
63
|
-
"types": "./dist/entrypoints/identity-providers/generic-oauth.d.ts",
|
|
64
|
-
"default": "./dist/entrypoints/identity-providers/generic-oauth.js"
|
|
65
|
-
},
|
|
66
|
-
"./frontend": {
|
|
67
|
-
"types": "./dist/entrypoints/frontend/index.d.ts",
|
|
68
|
-
"default": "./dist/entrypoints/frontend/index.js"
|
|
69
|
-
},
|
|
70
|
-
"./frontend/static": {
|
|
71
|
-
"types": "./dist/entrypoints/frontend/static.d.ts",
|
|
72
|
-
"default": "./dist/entrypoints/frontend/static.js"
|
|
73
|
-
},
|
|
74
|
-
"./frontend/proxy": {
|
|
75
|
-
"types": "./dist/entrypoints/frontend/proxy.d.ts",
|
|
76
|
-
"default": "./dist/entrypoints/frontend/proxy.js"
|
|
77
|
-
},
|
|
78
|
-
"./frontend/cloudflare": {
|
|
79
|
-
"types": "./dist/entrypoints/frontend/cloudflare.d.ts",
|
|
80
|
-
"default": "./dist/entrypoints/frontend/cloudflare.js"
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
"imports": {
|
|
84
|
-
"#server/*.ts": "./dist/*.js",
|
|
85
|
-
"#server/*.tsx": "./dist/*.js",
|
|
86
|
-
"#server/*": {
|
|
87
|
-
"types": "./dist/*",
|
|
88
|
-
"default": "./dist/*"
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
16
|
"exports": {
|
|
93
17
|
".": {
|
|
94
|
-
"@tinyauth/source": "./src/entrypoints/index.ts",
|
|
95
18
|
"types": "./dist/entrypoints/index.d.ts",
|
|
96
19
|
"default": "./dist/entrypoints/index.js"
|
|
97
20
|
},
|
|
98
21
|
"./config": {
|
|
99
|
-
"@tinyauth/source": "./src/entrypoints/config/index.ts",
|
|
100
22
|
"types": "./dist/entrypoints/config/index.d.ts",
|
|
101
23
|
"default": "./dist/entrypoints/config/index.js"
|
|
102
24
|
},
|
|
103
25
|
"./services": {
|
|
104
|
-
"@tinyauth/source": "./src/entrypoints/services.ts",
|
|
105
26
|
"types": "./dist/entrypoints/services.d.ts",
|
|
106
27
|
"default": "./dist/entrypoints/services.js"
|
|
107
28
|
},
|
|
108
29
|
"./database/postgres": {
|
|
109
|
-
"@tinyauth/source": "./src/entrypoints/database/postgres/postgres.ts",
|
|
110
30
|
"types": "./dist/entrypoints/database/postgres/postgres.d.ts",
|
|
111
31
|
"default": "./dist/entrypoints/database/postgres/postgres.js"
|
|
112
32
|
},
|
|
113
33
|
"./database/sqlite": {
|
|
114
|
-
"@tinyauth/source": "./src/entrypoints/database/sqlite/sqlite.ts",
|
|
115
34
|
"types": "./dist/entrypoints/database/sqlite/sqlite.d.ts",
|
|
116
35
|
"default": "./dist/entrypoints/database/sqlite/sqlite.js"
|
|
117
36
|
},
|
|
118
37
|
"./database/d1": {
|
|
119
|
-
"@tinyauth/source": "./src/entrypoints/database/d1/d1.ts",
|
|
120
38
|
"types": "./dist/entrypoints/database/d1/d1.d.ts",
|
|
121
39
|
"default": "./dist/entrypoints/database/d1/d1.js"
|
|
122
40
|
},
|
|
123
41
|
"./mail/nodemailer": {
|
|
124
|
-
"@tinyauth/source": "./src/entrypoints/mail/nodemailer.ts",
|
|
125
42
|
"types": "./dist/entrypoints/mail/nodemailer.d.ts",
|
|
126
43
|
"default": "./dist/entrypoints/mail/nodemailer.js"
|
|
127
44
|
},
|
|
128
45
|
"./scheduler/croner": {
|
|
129
|
-
"@tinyauth/source": "./src/entrypoints/scheduler/croner.ts",
|
|
130
46
|
"types": "./dist/entrypoints/scheduler/croner.d.ts",
|
|
131
47
|
"default": "./dist/entrypoints/scheduler/croner.js"
|
|
132
48
|
},
|
|
133
49
|
"./identity-providers/github": {
|
|
134
|
-
"@tinyauth/source": "./src/entrypoints/identity-providers/github.ts",
|
|
135
50
|
"types": "./dist/entrypoints/identity-providers/github.d.ts",
|
|
136
51
|
"default": "./dist/entrypoints/identity-providers/github.js"
|
|
137
52
|
},
|
|
138
53
|
"./identity-providers/google": {
|
|
139
|
-
"@tinyauth/source": "./src/entrypoints/identity-providers/google.ts",
|
|
140
54
|
"types": "./dist/entrypoints/identity-providers/google.d.ts",
|
|
141
55
|
"default": "./dist/entrypoints/identity-providers/google.js"
|
|
142
56
|
},
|
|
143
57
|
"./identity-providers/apple": {
|
|
144
|
-
"@tinyauth/source": "./src/entrypoints/identity-providers/apple.ts",
|
|
145
58
|
"types": "./dist/entrypoints/identity-providers/apple.d.ts",
|
|
146
59
|
"default": "./dist/entrypoints/identity-providers/apple.js"
|
|
147
60
|
},
|
|
148
61
|
"./identity-providers/generic-oauth": {
|
|
149
|
-
"@tinyauth/source": "./src/entrypoints/identity-providers/generic-oauth.ts",
|
|
150
62
|
"types": "./dist/entrypoints/identity-providers/generic-oauth.d.ts",
|
|
151
63
|
"default": "./dist/entrypoints/identity-providers/generic-oauth.js"
|
|
152
64
|
},
|
|
153
65
|
"./frontend": {
|
|
154
|
-
"@tinyauth/source": "./src/entrypoints/frontend/index.ts",
|
|
155
66
|
"types": "./dist/entrypoints/frontend/index.d.ts",
|
|
156
67
|
"default": "./dist/entrypoints/frontend/index.js"
|
|
157
68
|
},
|
|
158
69
|
"./frontend/static": {
|
|
159
|
-
"@tinyauth/source": "./src/entrypoints/frontend/static.ts",
|
|
160
70
|
"types": "./dist/entrypoints/frontend/static.d.ts",
|
|
161
71
|
"default": "./dist/entrypoints/frontend/static.js"
|
|
162
72
|
},
|
|
163
73
|
"./frontend/proxy": {
|
|
164
|
-
"@tinyauth/source": "./src/entrypoints/frontend/proxy.ts",
|
|
165
74
|
"types": "./dist/entrypoints/frontend/proxy.d.ts",
|
|
166
75
|
"default": "./dist/entrypoints/frontend/proxy.js"
|
|
167
76
|
},
|
|
168
77
|
"./frontend/cloudflare": {
|
|
169
|
-
"@tinyauth/source": "./src/entrypoints/frontend/cloudflare.ts",
|
|
170
78
|
"types": "./dist/entrypoints/frontend/cloudflare.d.ts",
|
|
171
79
|
"default": "./dist/entrypoints/frontend/cloudflare.js"
|
|
172
80
|
}
|
|
173
81
|
},
|
|
174
82
|
"imports": {
|
|
175
|
-
"#server/*.ts":
|
|
176
|
-
|
|
177
|
-
"types": "./dist/*.d.ts",
|
|
178
|
-
"default": "./dist/*.js"
|
|
179
|
-
},
|
|
180
|
-
"#server/*.tsx": {
|
|
181
|
-
"@tinyauth/source": "./src/*.tsx",
|
|
182
|
-
"types": "./dist/*.d.ts",
|
|
183
|
-
"default": "./dist/*.js"
|
|
184
|
-
},
|
|
83
|
+
"#server/*.ts": "./dist/*.js",
|
|
84
|
+
"#server/*.tsx": "./dist/*.js",
|
|
185
85
|
"#server/*": {
|
|
186
|
-
"@tinyauth/source": "./src/*",
|
|
187
86
|
"types": "./dist/*",
|
|
188
87
|
"default": "./dist/*"
|
|
189
88
|
}
|
|
190
89
|
},
|
|
90
|
+
"devDependencies": {
|
|
91
|
+
"@biomejs/biome": "^2.4.14",
|
|
92
|
+
"@react-email/preview-server": "^5.2.10",
|
|
93
|
+
"@types/node": "^24.12.3",
|
|
94
|
+
"@types/nodemailer": "^8.0.0",
|
|
95
|
+
"@types/pg": "^8.20.0",
|
|
96
|
+
"@types/qrcode": "^1.5.6",
|
|
97
|
+
"@cloudflare/workers-types": "^4.20260508.1",
|
|
98
|
+
"@types/react": "^19.2.14",
|
|
99
|
+
"@vitest/coverage-v8": "^4.1.5",
|
|
100
|
+
"tsx": "^4.21.0",
|
|
101
|
+
"typescript": "^6.0.3",
|
|
102
|
+
"vitest": "^4.1.5",
|
|
103
|
+
"wrangler": "^4.90.0"
|
|
104
|
+
},
|
|
105
|
+
"dependencies": {
|
|
106
|
+
"@hono/standard-validator": "^0.2.2",
|
|
107
|
+
"@mikro-orm/cli": "^7.0.14",
|
|
108
|
+
"@mikro-orm/core": "^7.0.14",
|
|
109
|
+
"@mikro-orm/decorators": "^7.0.14",
|
|
110
|
+
"@mikro-orm/migrations": "^7.0.14",
|
|
111
|
+
"@mikro-orm/postgresql": "^7.0.14",
|
|
112
|
+
"@mikro-orm/seeder": "^7.0.14",
|
|
113
|
+
"@mikro-orm/sql": "^7.0.14",
|
|
114
|
+
"@react-email/components": "^1.0.12",
|
|
115
|
+
"@react-email/render": "^2.0.8",
|
|
116
|
+
"@react-email/tailwind": "^2.0.7",
|
|
117
|
+
"@scalar/hono-api-reference": "^0.10.14",
|
|
118
|
+
"@simplewebauthn/server": "^13.3.0",
|
|
119
|
+
"croner": "^10.0.1",
|
|
120
|
+
"hono": "^4.12.18",
|
|
121
|
+
"hono-openapi": "^1.3.0",
|
|
122
|
+
"jose": "^6.2.3",
|
|
123
|
+
"kysely": "^0.28.17",
|
|
124
|
+
"kysely-d1": "^0.4.0",
|
|
125
|
+
"pino-pretty": "^13.1.3",
|
|
126
|
+
"react-email": "^6.1.1",
|
|
127
|
+
"nodemailer": "^8.0.7",
|
|
128
|
+
"otplib": "^13.4.0",
|
|
129
|
+
"pg": "^8.20.0",
|
|
130
|
+
"pino": "^10.3.1",
|
|
131
|
+
"qrcode": "^1.5.4",
|
|
132
|
+
"react": "^19.2.5",
|
|
133
|
+
"zod": "^4.4.3"
|
|
134
|
+
},
|
|
135
|
+
"mikro-orm": {
|
|
136
|
+
"configPaths": [
|
|
137
|
+
"./src/entrypoints/database/sqlite/cli.ts"
|
|
138
|
+
]
|
|
139
|
+
},
|
|
191
140
|
"scripts": {
|
|
192
141
|
"test": "NODE_OPTIONS='--conditions=@tinyauth/source' vitest",
|
|
193
142
|
"test:coverage": "rm -rf coverage && NODE_OPTIONS='--conditions=@tinyauth/source' vitest run --coverage --maxWorkers=1",
|
|
@@ -202,55 +151,5 @@
|
|
|
202
151
|
"mikro-orm:compile:d1": "mikro-orm compile --config ./src/entrypoints/database/d1/cli.ts",
|
|
203
152
|
"mikro-orm:debug": "mikro-orm debug",
|
|
204
153
|
"mikro-orm:schema:create": "mikro-orm migration:create --initial"
|
|
205
|
-
},
|
|
206
|
-
"devDependencies": {
|
|
207
|
-
"@biomejs/biome": "catalog:",
|
|
208
|
-
"@react-email/preview-server": "catalog:",
|
|
209
|
-
"@types/node": "catalog:",
|
|
210
|
-
"@types/nodemailer": "catalog:",
|
|
211
|
-
"@types/pg": "catalog:",
|
|
212
|
-
"@types/qrcode": "catalog:",
|
|
213
|
-
"@cloudflare/workers-types": "catalog:",
|
|
214
|
-
"@types/react": "catalog:",
|
|
215
|
-
"@vitest/coverage-v8": "catalog:",
|
|
216
|
-
"tsx": "catalog:",
|
|
217
|
-
"typescript": "catalog:",
|
|
218
|
-
"vitest": "catalog:",
|
|
219
|
-
"wrangler": "catalog:"
|
|
220
|
-
},
|
|
221
|
-
"dependencies": {
|
|
222
|
-
"@hono/standard-validator": "catalog:",
|
|
223
|
-
"@mikro-orm/cli": "catalog:",
|
|
224
|
-
"@mikro-orm/core": "catalog:",
|
|
225
|
-
"@mikro-orm/decorators": "catalog:",
|
|
226
|
-
"@mikro-orm/migrations": "catalog:",
|
|
227
|
-
"@mikro-orm/postgresql": "catalog:",
|
|
228
|
-
"@mikro-orm/seeder": "catalog:",
|
|
229
|
-
"@mikro-orm/sql": "catalog:",
|
|
230
|
-
"@react-email/components": "catalog:",
|
|
231
|
-
"@react-email/render": "catalog:",
|
|
232
|
-
"@react-email/tailwind": "catalog:",
|
|
233
|
-
"@scalar/hono-api-reference": "catalog:",
|
|
234
|
-
"@simplewebauthn/server": "catalog:",
|
|
235
|
-
"croner": "catalog:",
|
|
236
|
-
"hono": "catalog:",
|
|
237
|
-
"hono-openapi": "catalog:",
|
|
238
|
-
"jose": "catalog:",
|
|
239
|
-
"kysely": "catalog:",
|
|
240
|
-
"kysely-d1": "catalog:",
|
|
241
|
-
"pino-pretty": "catalog:",
|
|
242
|
-
"react-email": "catalog:",
|
|
243
|
-
"nodemailer": "catalog:",
|
|
244
|
-
"otplib": "catalog:",
|
|
245
|
-
"pg": "catalog:",
|
|
246
|
-
"pino": "catalog:",
|
|
247
|
-
"qrcode": "catalog:",
|
|
248
|
-
"react": "catalog:",
|
|
249
|
-
"zod": "catalog:"
|
|
250
|
-
},
|
|
251
|
-
"mikro-orm": {
|
|
252
|
-
"configPaths": [
|
|
253
|
-
"./src/entrypoints/database/sqlite/cli.ts"
|
|
254
|
-
]
|
|
255
154
|
}
|
|
256
|
-
}
|
|
155
|
+
}
|