@bymax-one/nest-auth 1.3.1 → 1.3.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.
@@ -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
  *
@@ -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.1",
3
+ "version": "1.3.2",
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",
@@ -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.40",
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",