@aooth/auth 0.1.1 → 0.1.2
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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aooth/auth",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Auth method layer for aoothjs (sessions, tokens, password reset, MFA primitives)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"aoothjs",
|
|
@@ -56,7 +56,17 @@
|
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"jose": "^6.2.3",
|
|
59
|
-
"@aooth/user": "0.1.
|
|
59
|
+
"@aooth/user": "0.1.2"
|
|
60
|
+
},
|
|
61
|
+
"devDependencies": {
|
|
62
|
+
"@atscript/core": "^0.1.56",
|
|
63
|
+
"@atscript/db": "^0.1.80",
|
|
64
|
+
"@atscript/db-sql-tools": "^0.1.80",
|
|
65
|
+
"@atscript/db-sqlite": "^0.1.80",
|
|
66
|
+
"@atscript/typescript": "^0.1.56",
|
|
67
|
+
"@types/better-sqlite3": "^7.6.13",
|
|
68
|
+
"better-sqlite3": "^12.6.2",
|
|
69
|
+
"unplugin-atscript": "^0.1.56"
|
|
60
70
|
},
|
|
61
71
|
"peerDependencies": {
|
|
62
72
|
"@atscript/db": ">=0.1.79"
|
|
@@ -23,10 +23,15 @@ export interface AoothAuthCredential {
|
|
|
23
23
|
*/
|
|
24
24
|
kind?: string
|
|
25
25
|
|
|
26
|
-
/**
|
|
26
|
+
/**
|
|
27
|
+
* Custom claims, stored as JSON. Pattern-property shape accepts any key
|
|
28
|
+
* with a scalar value — matches the JWT registered-claim spec (iss, sub,
|
|
29
|
+
* iat, exp, jti, aud, etc.) which are all primitives. Consumers needing
|
|
30
|
+
* nested/structured claims should subclass with an explicit `claims` shape.
|
|
31
|
+
*/
|
|
27
32
|
@db.json
|
|
28
33
|
claims?: {
|
|
29
|
-
[
|
|
34
|
+
[/.*/]: string | number | boolean
|
|
30
35
|
}
|
|
31
36
|
|
|
32
37
|
/** Display metadata: ip, userAgent, fingerprint, label. */
|