@aooth/auth 0.2.5 → 0.2.6
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/dist/index.cjs +1 -0
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -0
- package/package.json +9 -9
package/dist/index.cjs
CHANGED
|
@@ -479,6 +479,7 @@ var CredentialStoreEncapsulated = class {
|
|
|
479
479
|
decrypt(token) {
|
|
480
480
|
try {
|
|
481
481
|
const blob = Buffer.from(token, "base64url");
|
|
482
|
+
if (blob.toString("base64url") !== token) return null;
|
|
482
483
|
if (blob.length < 29) return null;
|
|
483
484
|
const iv = blob.subarray(0, IV_LEN);
|
|
484
485
|
const authTag = blob.subarray(blob.length - TAG_LEN);
|
package/dist/index.d.cts
CHANGED
|
@@ -376,7 +376,7 @@ export declare class RateLimiter {
|
|
|
376
376
|
* consumer-triggered security notice (e.g. impossible-travel from a
|
|
377
377
|
* `resolveRiskStepUp` override) — never auto-sent by the framework.
|
|
378
378
|
*/
|
|
379
|
-
type AuthEmailKind = "recovery.magicLink" | "invite.magicLink" | "mfa.code" | "login.pincode" | "recovery.pincode" | "invite.pincode" | "notifyNewDevice" | "securityAlert";
|
|
379
|
+
type AuthEmailKind = "recovery.magicLink" | "login.magicLink" | "invite.magicLink" | "mfa.code" | "login.pincode" | "recovery.pincode" | "invite.pincode" | "notifyNewDevice" | "securityAlert";
|
|
380
380
|
/**
|
|
381
381
|
* Structured event passed to `EmailSender.send()` from inside the auth
|
|
382
382
|
* workflows. Flat and serialisable so consumers can route it to any
|
package/dist/index.d.mts
CHANGED
|
@@ -376,7 +376,7 @@ export declare class RateLimiter {
|
|
|
376
376
|
* consumer-triggered security notice (e.g. impossible-travel from a
|
|
377
377
|
* `resolveRiskStepUp` override) — never auto-sent by the framework.
|
|
378
378
|
*/
|
|
379
|
-
type AuthEmailKind = "recovery.magicLink" | "invite.magicLink" | "mfa.code" | "login.pincode" | "recovery.pincode" | "invite.pincode" | "notifyNewDevice" | "securityAlert";
|
|
379
|
+
type AuthEmailKind = "recovery.magicLink" | "login.magicLink" | "invite.magicLink" | "mfa.code" | "login.pincode" | "recovery.pincode" | "invite.pincode" | "notifyNewDevice" | "securityAlert";
|
|
380
380
|
/**
|
|
381
381
|
* Structured event passed to `EmailSender.send()` from inside the auth
|
|
382
382
|
* workflows. Flat and serialisable so consumers can route it to any
|
package/dist/index.mjs
CHANGED
|
@@ -478,6 +478,7 @@ var CredentialStoreEncapsulated = class {
|
|
|
478
478
|
decrypt(token) {
|
|
479
479
|
try {
|
|
480
480
|
const blob = Buffer.from(token, "base64url");
|
|
481
|
+
if (blob.toString("base64url") !== token) return null;
|
|
481
482
|
if (blob.length < 29) return null;
|
|
482
483
|
const iv = blob.subarray(0, IV_LEN);
|
|
483
484
|
const authTag = blob.subarray(blob.length - TAG_LEN);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aooth/auth",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.6",
|
|
4
4
|
"description": "Auth method layer for aoothjs (sessions, tokens, password reset, MFA primitives)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"aoothjs",
|
|
@@ -104,22 +104,22 @@
|
|
|
104
104
|
},
|
|
105
105
|
"dependencies": {
|
|
106
106
|
"jose": "^6.2.3",
|
|
107
|
-
"@aooth/user": "0.2.
|
|
107
|
+
"@aooth/user": "0.2.6"
|
|
108
108
|
},
|
|
109
109
|
"devDependencies": {
|
|
110
|
-
"@atscript/core": "^0.2.
|
|
111
|
-
"@atscript/db": "^0.1.
|
|
112
|
-
"@atscript/db-sql-tools": "^0.1.
|
|
113
|
-
"@atscript/db-sqlite": "^0.1.
|
|
114
|
-
"@atscript/typescript": "^0.2.
|
|
110
|
+
"@atscript/core": "^0.2.9",
|
|
111
|
+
"@atscript/db": "^0.1.174",
|
|
112
|
+
"@atscript/db-sql-tools": "^0.1.174",
|
|
113
|
+
"@atscript/db-sqlite": "^0.1.174",
|
|
114
|
+
"@atscript/typescript": "^0.2.9",
|
|
115
115
|
"@types/better-sqlite3": "^7.6.13",
|
|
116
116
|
"@uniqu/core": "^0.2.1",
|
|
117
117
|
"better-sqlite3": "^12.6.2",
|
|
118
118
|
"ioredis": "^5.11.1",
|
|
119
|
-
"unplugin-atscript": "^0.2.
|
|
119
|
+
"unplugin-atscript": "^0.2.9"
|
|
120
120
|
},
|
|
121
121
|
"peerDependencies": {
|
|
122
|
-
"@atscript/db": "^0.1.
|
|
122
|
+
"@atscript/db": "^0.1.174"
|
|
123
123
|
},
|
|
124
124
|
"peerDependenciesMeta": {
|
|
125
125
|
"@atscript/db": {
|