@bymax-one/nest-auth 1.3.1 → 1.4.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/CHANGELOG.md +73 -2
- package/README.md +6 -4
- package/dist/server/index.cjs +1098 -336
- package/dist/server/index.d.cts +135 -11
- package/dist/server/index.d.ts +135 -11
- package/dist/server/index.mjs +1098 -336
- package/dist/shared/index.d.cts +8 -0
- package/dist/shared/index.d.ts +8 -0
- package/package.json +4 -4
package/dist/shared/index.d.cts
CHANGED
|
@@ -759,6 +759,14 @@ interface MfaTempPayload {
|
|
|
759
759
|
type: 'mfa_challenge';
|
|
760
760
|
/** Indicates which authentication context triggered the MFA challenge. */
|
|
761
761
|
context: 'dashboard' | 'platform';
|
|
762
|
+
/**
|
|
763
|
+
* The tenant the dashboard challenge belongs to. Present on the dashboard plane, absent on the
|
|
764
|
+
* platform plane. `verifyMfaTempToken` rejects a dashboard token that lacks it and a platform
|
|
765
|
+
* token that carries it, so the `?` expresses only that the two planes populate it differently —
|
|
766
|
+
* it is never a value the caller may omit and have honoured. It is what lets the challenge
|
|
767
|
+
* resolve the pending account tenant-scoped instead of by `sub` alone.
|
|
768
|
+
*/
|
|
769
|
+
tenantId?: string;
|
|
762
770
|
/**
|
|
763
771
|
* The subject's token **epoch** at issuance, in the plane named by `context`.
|
|
764
772
|
*
|
package/dist/shared/index.d.ts
CHANGED
|
@@ -759,6 +759,14 @@ interface MfaTempPayload {
|
|
|
759
759
|
type: 'mfa_challenge';
|
|
760
760
|
/** Indicates which authentication context triggered the MFA challenge. */
|
|
761
761
|
context: 'dashboard' | 'platform';
|
|
762
|
+
/**
|
|
763
|
+
* The tenant the dashboard challenge belongs to. Present on the dashboard plane, absent on the
|
|
764
|
+
* platform plane. `verifyMfaTempToken` rejects a dashboard token that lacks it and a platform
|
|
765
|
+
* token that carries it, so the `?` expresses only that the two planes populate it differently —
|
|
766
|
+
* it is never a value the caller may omit and have honoured. It is what lets the challenge
|
|
767
|
+
* resolve the pending account tenant-scoped instead of by `sub` alone.
|
|
768
|
+
*/
|
|
769
|
+
tenantId?: string;
|
|
762
770
|
/**
|
|
763
771
|
* The subject's token **epoch** at issuance, in the plane named by `context`.
|
|
764
772
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bymax-one/nest-auth",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "Full-stack authentication and authorization package for NestJS, React and Next.js — JWT, MFA, OAuth, sessions, multi-tenant SaaS ready",
|
|
5
5
|
"author": "Bymax One <support@bymax.one>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
"class-transformer": "^0.5.0",
|
|
118
118
|
"class-validator": "^0.14.0 || ^0.15.0",
|
|
119
119
|
"express": "^5.0.0",
|
|
120
|
-
"ioredis": "^
|
|
120
|
+
"ioredis": "^6.0.0",
|
|
121
121
|
"next": "^16.2.11",
|
|
122
122
|
"react": "^19.0.0",
|
|
123
123
|
"reflect-metadata": "^0.2.0",
|
|
@@ -182,7 +182,7 @@
|
|
|
182
182
|
"@stryker-mutator/core": "^9",
|
|
183
183
|
"@stryker-mutator/jest-runner": "^9",
|
|
184
184
|
"@stryker-mutator/typescript-checker": "^9",
|
|
185
|
-
"@swc/core": "1.15.
|
|
185
|
+
"@swc/core": "1.15.47",
|
|
186
186
|
"@testing-library/react": "^16.3.2",
|
|
187
187
|
"@types/express": "^5.0.6",
|
|
188
188
|
"@types/jest": "^30.0.0",
|
|
@@ -202,7 +202,7 @@
|
|
|
202
202
|
"eslint-plugin-security": "^4.0.0",
|
|
203
203
|
"globals": "^17.6.0",
|
|
204
204
|
"husky": "^9.1.7",
|
|
205
|
-
"ioredis": "^
|
|
205
|
+
"ioredis": "^6.0.0",
|
|
206
206
|
"ioredis-mock": "^8.13.1",
|
|
207
207
|
"jest": "^30.4.2",
|
|
208
208
|
"jest-environment-jsdom": "^30.4.1",
|