@spfn/auth 0.1.0-alpha.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.
Files changed (2) hide show
  1. package/README.md +1468 -0
  2. package/package.json +91 -0
package/package.json ADDED
@@ -0,0 +1,91 @@
1
+ {
2
+ "name": "@spfn/auth",
3
+ "version": "0.1.0-alpha.0",
4
+ "type": "module",
5
+ "description": "Authentication, authorization, and RBAC module for SPFN",
6
+ "main": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.js"
12
+ },
13
+ "./server": {
14
+ "types": "./dist/server.d.ts",
15
+ "import": "./dist/server.js"
16
+ },
17
+ "./client": {
18
+ "types": "./dist/client.d.ts",
19
+ "import": "./dist/client.js"
20
+ }
21
+ },
22
+ "files": [
23
+ "dist",
24
+ "migrations",
25
+ "README.md"
26
+ ],
27
+ "scripts": {
28
+ "build": "npm run db:generate && tsup",
29
+ "watch": "tsup --watch",
30
+ "dev": "tsup --watch",
31
+ "type-check": "tsc --noEmit",
32
+ "clean": "rm -rf dist migrations",
33
+ "db:generate": "drizzle-kit generate",
34
+ "codegen": "spfn codegen run",
35
+ "test": "vitest",
36
+ "test:coverage": "vitest run --coverage",
37
+ "test:routes": "vitest src/server/routes",
38
+ "docker:test:up": "docker compose -f docker-compose.test.yml up -d",
39
+ "docker:test:down": "docker compose -f docker-compose.test.yml down",
40
+ "docker:test:logs": "docker compose -f docker-compose.test.yml logs -f",
41
+ "prepublishOnly": "pnpm run clean && pnpm run build && pnpm test run",
42
+ "publish:alpha": "npm publish --access public --tag alpha",
43
+ "publish:beta": "npm publish --access public --tag beta",
44
+ "publish:latest": "npm publish --access public"
45
+ },
46
+ "keywords": [
47
+ "spfn",
48
+ "auth",
49
+ "authentication",
50
+ "authorization",
51
+ "rbac",
52
+ "access-control"
53
+ ],
54
+ "license": "MIT",
55
+ "spfn": {
56
+ "prefix": "/_auth",
57
+ "schemas": [
58
+ "./dist/server/entities/*.js"
59
+ ],
60
+ "routes": {
61
+ "basePath": "/auth",
62
+ "dir": "./dist/server/routes"
63
+ },
64
+ "migrations": {
65
+ "dir": "./migrations"
66
+ },
67
+ "setupMessage": " 📚 Next steps:\n 1. Import auth: import { authMiddleware } from '@spfn/auth/server'\n 2. View tables: pnpm spfn db studio\n 3. API at: http://localhost:8790/_auth"
68
+ },
69
+ "dependencies": {
70
+ "@spfn/core": "^0.1.0-alpha.82",
71
+ "bcrypt": "^6.0.0",
72
+ "drizzle-orm": "^0.44.7",
73
+ "jsonwebtoken": "^9.0.2",
74
+ "postgres": "^3.4.0"
75
+ },
76
+ "devDependencies": {
77
+ "@types/bcrypt": "^5.0.2",
78
+ "@types/jsonwebtoken": "^9.0.6",
79
+ "@types/node": "^20.11.0",
80
+ "@vitest/coverage-v8": "^4.0.6",
81
+ "drizzle-kit": "^0.31.6",
82
+ "glob": "^11.0.3",
83
+ "hono": "^4.9.0",
84
+ "jose": "^6.1.0",
85
+ "spfn": "workspace:*",
86
+ "tsup": "^8.3.5",
87
+ "tsx": "^4.19.2",
88
+ "typescript": "^5.3.3",
89
+ "vitest": "^4.0.6"
90
+ }
91
+ }