@willyim/idp 0.1.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/LICENSE +21 -0
- package/README.md +278 -0
- package/dist/src/api.d.ts +77 -0
- package/dist/src/api.d.ts.map +1 -0
- package/dist/src/api.js +50 -0
- package/dist/src/claims.d.ts +46 -0
- package/dist/src/claims.d.ts.map +1 -0
- package/dist/src/claims.js +61 -0
- package/dist/src/client.d.ts +112 -0
- package/dist/src/client.d.ts.map +1 -0
- package/dist/src/client.js +155 -0
- package/dist/src/cookie.d.ts +19 -0
- package/dist/src/cookie.d.ts.map +1 -0
- package/dist/src/cookie.js +49 -0
- package/dist/src/crypto.d.ts +32 -0
- package/dist/src/crypto.d.ts.map +1 -0
- package/dist/src/crypto.js +76 -0
- package/dist/src/drizzle/index.d.ts +873 -0
- package/dist/src/drizzle/index.d.ts.map +1 -0
- package/dist/src/drizzle/index.js +130 -0
- package/dist/src/duration.d.ts +8 -0
- package/dist/src/duration.d.ts.map +1 -0
- package/dist/src/duration.js +24 -0
- package/dist/src/generated/idp-api.d.ts +1022 -0
- package/dist/src/index.d.ts +21 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +20 -0
- package/dist/src/react-router/index.d.ts +75 -0
- package/dist/src/react-router/index.d.ts.map +1 -0
- package/dist/src/react-router/index.js +110 -0
- package/dist/src/session.d.ts +141 -0
- package/dist/src/session.d.ts.map +1 -0
- package/dist/src/session.js +369 -0
- package/dist/src/store.d.ts +44 -0
- package/dist/src/store.d.ts.map +1 -0
- package/dist/src/store.js +41 -0
- package/openapi/idp-api.json +1344 -0
- package/package.json +78 -0
package/package.json
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@willyim/idp",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Login for apps that don't own identity — OIDC client, server sessions, and react-router guards against the willy.im IdP",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/src/index.js",
|
|
7
|
+
"types": "./dist/src/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/src/index.d.ts",
|
|
11
|
+
"import": "./dist/src/index.js"
|
|
12
|
+
},
|
|
13
|
+
"./drizzle": {
|
|
14
|
+
"types": "./dist/src/drizzle/index.d.ts",
|
|
15
|
+
"import": "./dist/src/drizzle/index.js"
|
|
16
|
+
},
|
|
17
|
+
"./react-router": {
|
|
18
|
+
"types": "./dist/src/react-router/index.d.ts",
|
|
19
|
+
"import": "./dist/src/react-router/index.js"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"files": [
|
|
23
|
+
"dist",
|
|
24
|
+
"openapi",
|
|
25
|
+
"README.md",
|
|
26
|
+
"LICENSE"
|
|
27
|
+
],
|
|
28
|
+
"sideEffects": false,
|
|
29
|
+
"engines": {
|
|
30
|
+
"node": ">=20"
|
|
31
|
+
},
|
|
32
|
+
"scripts": {
|
|
33
|
+
"build": "tsc -p tsconfig.build.json && node -e \"require('node:fs').cpSync('src/generated','dist/src/generated',{recursive:true})\"",
|
|
34
|
+
"prepare": "npm run build",
|
|
35
|
+
"typecheck": "tsc --noEmit -p tsconfig.json",
|
|
36
|
+
"test": "vitest run",
|
|
37
|
+
"test:watch": "vitest",
|
|
38
|
+
"openapi": "node scripts/generate-openapi.mjs"
|
|
39
|
+
},
|
|
40
|
+
"keywords": [
|
|
41
|
+
"oidc",
|
|
42
|
+
"oauth",
|
|
43
|
+
"openid-connect",
|
|
44
|
+
"authentication",
|
|
45
|
+
"session",
|
|
46
|
+
"pkce",
|
|
47
|
+
"cloudflare-workers",
|
|
48
|
+
"react-router",
|
|
49
|
+
"drizzle"
|
|
50
|
+
],
|
|
51
|
+
"license": "MIT",
|
|
52
|
+
"repository": {
|
|
53
|
+
"type": "git",
|
|
54
|
+
"url": "https://github.com/wovalle/willy.im",
|
|
55
|
+
"directory": "packages/idp"
|
|
56
|
+
},
|
|
57
|
+
"peerDependencies": {
|
|
58
|
+
"drizzle-orm": ">=0.44 || >=1.0.0-0"
|
|
59
|
+
},
|
|
60
|
+
"peerDependenciesMeta": {
|
|
61
|
+
"drizzle-orm": {
|
|
62
|
+
"optional": true
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"devDependencies": {
|
|
66
|
+
"@types/better-sqlite3": "^7.6.13",
|
|
67
|
+
"@types/node": "^22.19.7",
|
|
68
|
+
"better-sqlite3": "^12.11.1",
|
|
69
|
+
"drizzle-orm": "^0.44.7",
|
|
70
|
+
"esbuild": "^0.25.12",
|
|
71
|
+
"openapi-typescript": "^7.9.1",
|
|
72
|
+
"typescript": "^5.9.3",
|
|
73
|
+
"vitest": "^3.2.4"
|
|
74
|
+
},
|
|
75
|
+
"publishConfig": {
|
|
76
|
+
"access": "public"
|
|
77
|
+
}
|
|
78
|
+
}
|