nucleus-core-ts 0.10.111 → 0.10.113

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.
@@ -1,2 +1,13 @@
1
1
  import type { DeleteSessionOptions } from '../types';
2
2
  export declare const deleteSession: (options: DeleteSessionOptions) => Promise<boolean>;
3
+ /**
4
+ * Forget these sessions in Redis too — best-effort, never throws.
5
+ *
6
+ * Every path that revoked a session wrote `revoked_at` to Postgres and left
7
+ * `session:<id>` in Redis with the user id, device info and refresh-token hash
8
+ * inside, for up to thirty days. Measured on a leaflet install: 753 Redis
9
+ * session keys against 49 active rows. Password change, password reset,
10
+ * DELETE /auth/sessions[/:id] and the max-sessions eviction all go through
11
+ * here now; the refresh path already did.
12
+ */
13
+ export declare const forgetSessionsInRedis: (sessionIds: readonly (string | null | undefined)[]) => Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nucleus-core-ts",
3
- "version": "0.10.111",
3
+ "version": "0.10.113",
4
4
  "description": "Production-ready, enterprise-grade TypeScript framework for building multi-tenant APIs",
5
5
  "author": "Hidayet Can Özcan <hidayetcan@gmail.com>",
6
6
  "license": "SEE LICENSE IN LICENSE",