@bymax-one/nest-auth 1.5.5 → 1.5.7

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.
@@ -1059,6 +1059,12 @@ declare class AuthClientError extends Error {
1059
1059
  interface DashboardJwtPayload {
1060
1060
  /** Unique JWT ID (UUID v4) generated by the server for revocation tracking. */
1061
1061
  jti: string;
1062
+ /**
1063
+ * The session this token belongs to: the refresh family id, unchanged through every rotation.
1064
+ * Absent on a token minted before the claim existed, which the re-authentication gate treats as
1065
+ * a session that earned no recent authentication.
1066
+ */
1067
+ sid?: string | undefined;
1062
1068
  /** Subject — the authenticated user's internal identifier. */
1063
1069
  sub: string;
1064
1070
  /** Tenant the user belongs to; used for data isolation. */
@@ -1098,6 +1104,8 @@ interface DashboardJwtPayload {
1098
1104
  interface PlatformJwtPayload {
1099
1105
  /** Unique JWT ID (UUID v4) generated by the server for revocation tracking. */
1100
1106
  jti: string;
1107
+ /** The session this token belongs to, as on {@link DashboardJwtPayload.sid}. */
1108
+ sid?: string | undefined;
1101
1109
  /** Subject — the platform administrator's internal identifier. */
1102
1110
  sub: string;
1103
1111
  /** Administrator's platform-level role (e.g. `'super_admin'`, `'support'`). */
@@ -1059,6 +1059,12 @@ declare class AuthClientError extends Error {
1059
1059
  interface DashboardJwtPayload {
1060
1060
  /** Unique JWT ID (UUID v4) generated by the server for revocation tracking. */
1061
1061
  jti: string;
1062
+ /**
1063
+ * The session this token belongs to: the refresh family id, unchanged through every rotation.
1064
+ * Absent on a token minted before the claim existed, which the re-authentication gate treats as
1065
+ * a session that earned no recent authentication.
1066
+ */
1067
+ sid?: string | undefined;
1062
1068
  /** Subject — the authenticated user's internal identifier. */
1063
1069
  sub: string;
1064
1070
  /** Tenant the user belongs to; used for data isolation. */
@@ -1098,6 +1104,8 @@ interface DashboardJwtPayload {
1098
1104
  interface PlatformJwtPayload {
1099
1105
  /** Unique JWT ID (UUID v4) generated by the server for revocation tracking. */
1100
1106
  jti: string;
1107
+ /** The session this token belongs to, as on {@link DashboardJwtPayload.sid}. */
1108
+ sid?: string | undefined;
1101
1109
  /** Subject — the platform administrator's internal identifier. */
1102
1110
  sub: string;
1103
1111
  /** Administrator's platform-level role (e.g. `'super_admin'`, `'support'`). */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bymax-one/nest-auth",
3
- "version": "1.5.5",
3
+ "version": "1.5.7",
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",