@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.
- package/CHANGELOG.md +77 -1
- package/README.md +7 -1
- package/dist/react/index.cjs +3 -1
- package/dist/react/index.d.cts +3 -0
- package/dist/react/index.d.ts +3 -0
- package/dist/react/index.mjs +3 -1
- package/dist/server/index.cjs +236 -112
- package/dist/server/index.d.cts +97 -23
- package/dist/server/index.d.ts +97 -23
- package/dist/server/index.mjs +236 -113
- package/dist/shared/index.d.cts +8 -0
- package/dist/shared/index.d.ts +8 -0
- package/package.json +1 -1
package/dist/shared/index.d.cts
CHANGED
|
@@ -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/dist/shared/index.d.ts
CHANGED
|
@@ -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.
|
|
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",
|