@absolutejs/auth 0.47.0 → 0.48.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/dist/cli/migrate.js +7 -4
- package/dist/cli/migrate.js.map +3 -3
- package/dist/index.js +110 -23
- package/dist/index.js.map +6 -6
- package/dist/session/types.d.ts +9 -0
- package/package.json +1 -1
package/dist/session/types.d.ts
CHANGED
|
@@ -8,4 +8,13 @@ export type AuthSessionStore<UserType> = {
|
|
|
8
8
|
removeUnregisteredSession: (id: UserSessionId) => Promise<void>;
|
|
9
9
|
listSessionIds?: () => Promise<UserSessionId[]>;
|
|
10
10
|
listUnregisteredSessionIds?: () => Promise<UserSessionId[]>;
|
|
11
|
+
/**
|
|
12
|
+
* Optional fast-path the periodic cleanup prefers over loading every session
|
|
13
|
+
* to check expiry: a backing store (e.g. SQL) deletes all rows past their
|
|
14
|
+
* expiry in one indexed statement and returns how many it removed. When a
|
|
15
|
+
* store provides this, cleanup skips the `listSessionIds` + per-id load
|
|
16
|
+
* storm entirely. (Per-user session caps stay a creation-time concern.)
|
|
17
|
+
*/
|
|
18
|
+
deleteExpired?: () => Promise<number>;
|
|
19
|
+
deleteExpiredUnregistered?: () => Promise<number>;
|
|
11
20
|
};
|
package/package.json
CHANGED