@nwire/auth 0.7.0 → 0.8.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/README.md +1 -16
- package/package.json +8 -6
package/README.md
CHANGED
|
@@ -46,17 +46,7 @@ defineApp("my-app", {
|
|
|
46
46
|
|
|
47
47
|
## When to use
|
|
48
48
|
|
|
49
|
-
Whenever you need real users, sessions, or tenant-scoped authorization.
|
|
50
|
-
|
|
51
|
-
## Standalone use
|
|
52
|
-
|
|
53
|
-
For developers using `@nwire/auth` **without the rest of Nwire** — pair it with any TypeScript project, any container, any HTTP framework.
|
|
54
|
-
|
|
55
|
-
```ts
|
|
56
|
-
// See the package's main entry (src/) for the standalone surface.
|
|
57
|
-
// The exports below work without @nwire/app or @nwire/forge.
|
|
58
|
-
import {} from /* ...standalone exports... */ "@nwire/auth";
|
|
59
|
-
```
|
|
49
|
+
Whenever you need real users, sessions, or tenant-scoped authorization.
|
|
60
50
|
|
|
61
51
|
## Within nwire-app
|
|
62
52
|
|
|
@@ -70,8 +60,3 @@ const app = createApp({
|
|
|
70
60
|
});
|
|
71
61
|
// Adapter/plugin wiring happens here when applicable.
|
|
72
62
|
```
|
|
73
|
-
|
|
74
|
-
## See also
|
|
75
|
-
|
|
76
|
-
- [Architecture sketch §05 — Adapters tier](../../architecture-sketch.html#packages)
|
|
77
|
-
- Sibling packages: [@nwire/auth-better-auth](../nwire-auth-better-auth), [@nwire/auth-logto](../nwire-auth-logto), [@nwire/rbac](../nwire-rbac)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nwire/auth",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "Nwire — authorization contract + middleware. Authorizer interface (throw-on-deny) + authzMiddleware. Per-action `policy` tag is opaque to the framework; the authorizer decides what each tag means.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"auth",
|
|
@@ -9,9 +9,11 @@
|
|
|
9
9
|
"nwire",
|
|
10
10
|
"policy"
|
|
11
11
|
],
|
|
12
|
+
"license": "MIT",
|
|
12
13
|
"files": [
|
|
13
14
|
"dist",
|
|
14
|
-
"README.md"
|
|
15
|
+
"README.md",
|
|
16
|
+
"LICENSE"
|
|
15
17
|
],
|
|
16
18
|
"type": "module",
|
|
17
19
|
"main": "./dist/auth.js",
|
|
@@ -27,15 +29,15 @@
|
|
|
27
29
|
},
|
|
28
30
|
"dependencies": {
|
|
29
31
|
"zod": "^4.0.0",
|
|
30
|
-
"@nwire/forge": "0.
|
|
31
|
-
"@nwire/
|
|
32
|
-
"@nwire/
|
|
32
|
+
"@nwire/forge": "0.8.0",
|
|
33
|
+
"@nwire/handler": "0.8.0",
|
|
34
|
+
"@nwire/http": "0.8.0"
|
|
33
35
|
},
|
|
34
36
|
"devDependencies": {
|
|
35
37
|
"@types/node": "^22.19.9",
|
|
36
38
|
"typescript": "^5.9.3",
|
|
37
39
|
"vitest": "^4.0.18",
|
|
38
|
-
"@nwire/envelope": "0.
|
|
40
|
+
"@nwire/envelope": "0.8.0"
|
|
39
41
|
},
|
|
40
42
|
"scripts": {
|
|
41
43
|
"build": "tsc && node ../../scripts/fix-dist-extensions.mjs dist",
|