strapi-plugin-magic-sessionmanager 4.10.0 → 4.11.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.
Files changed (31) hide show
  1. package/CHANGELOG.md +44 -6
  2. package/README.md +251 -69
  3. package/dist/admin/{Analytics-CdmRsigN.js → Analytics-CBHeWeGn.js} +1 -1
  4. package/dist/admin/{Analytics-PRqsLMEx.mjs → Analytics-D56O8Q6e.mjs} +1 -1
  5. package/dist/admin/{App-DUMCbuCr.js → App-D4cBPwB_.js} +2 -3
  6. package/dist/admin/{App-BSeYF7KA.mjs → App-EDIkLJdb.mjs} +2 -3
  7. package/dist/admin/{OnlineUsersWidget-CDZ19_PT.js → OnlineUsersWidget-BF2R2YIy.js} +1 -1
  8. package/dist/admin/{OnlineUsersWidget-B5pXzqM9.mjs → OnlineUsersWidget-MwUutkKQ.mjs} +1 -1
  9. package/dist/admin/{Settings-CrLzRXrA.js → Settings-CMzEF8EH.js} +9 -3
  10. package/dist/admin/{Settings-B-GRuWjT.mjs → Settings-bLMyi0BN.mjs} +8 -2
  11. package/dist/admin/{de-DwUCBY1b.mjs → de-CxfuTF6C.mjs} +0 -42
  12. package/dist/admin/{de-Dzo1tVoJ.js → de-DVNTHmSo.js} +0 -42
  13. package/dist/admin/{en-Dd0wXfgR.mjs → en-BcPIlQYL.mjs} +0 -42
  14. package/dist/admin/{en-CL5llI55.js → en-BuVXIcHA.js} +0 -42
  15. package/dist/admin/{es-CiNDwv_f.js → es-CEteHmBO.js} +0 -42
  16. package/dist/admin/{es-Cl5IwDA4.mjs → es-DxHpaNA1.mjs} +0 -42
  17. package/dist/admin/{fr-DBOQ-UDm.js → fr-BMd2-wW7.js} +0 -42
  18. package/dist/admin/{fr-DhADj8Zs.mjs → fr-Dw43lHg7.mjs} +0 -42
  19. package/dist/admin/{index-CaLVyCio.js → index-DvNfekoR.js} +9 -19
  20. package/dist/admin/{index-CHACmZsg.mjs → index-qa6Qnfkc.mjs} +9 -19
  21. package/dist/admin/index.js +1 -1
  22. package/dist/admin/index.mjs +1 -1
  23. package/dist/admin/{pt-CT6VpDMM.mjs → pt-7jnxDSX-.mjs} +0 -42
  24. package/dist/admin/{pt-m73K1nJ0.js → pt-BvO63p01.js} +0 -42
  25. package/dist/server/index.js +26 -592
  26. package/dist/server/index.mjs +26 -592
  27. package/package.json +29 -13
  28. package/dist/admin/License-BeD7Du6r.js +0 -443
  29. package/dist/admin/License-D5W_l35e.mjs +0 -443
  30. package/dist/admin/maskSensitiveValue-BWcSjow7.js +0 -9
  31. package/dist/admin/maskSensitiveValue-lLRhN_S7.mjs +0 -10
package/CHANGELOG.md CHANGED
@@ -1,3 +1,43 @@
1
+ # [4.11.0](https://github.com/Schero94/Magic-Sessionmanager/compare/v4.10.0...v4.11.0) (2026-11-07)
2
+
3
+
4
+ ### Features
5
+
6
+ * remove the license feature and every license server call ([#8](https://github.com/Schero94/Magic-Sessionmanager/issues/8)) ([c5ba2ef](https://github.com/Schero94/Magic-Sessionmanager/commit/c5ba2ef6b3e32f11cfadaed479a6d2e5688b3415))
7
+
8
+ ## [Unreleased]
9
+
10
+ Release type: minor. `feat:` removes the license feature; `fix:` corrects the package metadata. No `BREAKING CHANGE` footer, see "Version decision" below.
11
+
12
+ ### Removed
13
+
14
+ * **The License page and the license feature.** Settings › Session Manager now has two links, **Configuration** and **Analytics**. The License page, its settings link, the pass-through `LicenseGuard` wrapper and the 42 `license.*` messages in each of the five admin languages are gone.
15
+ * **All calls to the license server** (`magicapi.fitlex.me`). The plugin makes no install, license or telemetry request of any kind. The only outbound requests are the ones you turn on: ipapi.co lookups, Discord or Slack webhooks, emails through your Email provider and the MaxMind database download.
16
+ * **Admin routes** `GET /magic-sessionmanager/license/status` and `POST /magic-sessionmanager/license/auto-create`, `/license/create`, `/license/ping`, `/license/store-key`, with their controller and the `license-guard` service.
17
+ * **Environment variables** `MAGIC_LICENSE_SERVER_URL` and `MAGIC_LICENSE_TIMEOUT_MS` (no longer read).
18
+
19
+ ### Changed
20
+
21
+ * **Stored license data is deleted at startup.** The plugin store keys `licenseKey`, `lastValidated` and `deviceId` (a hash of the server's MAC addresses and host name) are removed with one `deleteMany` statement. It is idempotent and safe when several instances start at once; a failure is logged by error name and retried on the next start. MaxMind GeoIP credentials and all settings are kept.
22
+ * **No install warnings from the plugin.** `@strapi/utils` (used by the server code) moved from `peerDependencies` to `dependencies`. `@strapi/design-system`, `@strapi/icons` and `react-intl`, which a Strapi app gets through `@strapi/strapi`, are optional peers (`peerDependenciesMeta`). `@strapi/plugin-users-permissions ^5.0.0` is now a declared peer, because sessions relate to its user type. `react` and `react-dom` peers are `^18.0.0`, as in the Strapi 5 app template.
23
+ * **Package metadata:** plain description, `homepage` is the project site (https://schero94.github.io/Magic-Sessionmanager/), `repository.url` uses the `git+https` form that `npm pkg fix` expects, and the keywords describe what the plugin does.
24
+ * **README and project site** rewritten: features, a one-minute quick start, examples, performance notes, FAQ and migration notes.
25
+
26
+ ### Fixed
27
+
28
+ * A unit test for revocation expiry read the clock twice and failed when a second boundary passed in between.
29
+ * The first start on a new database no longer logs the warning "Authenticated role not found - skipping permission setup". Users & Permissions can create its roles after the plugin's bootstrap, and the plugin already finished the setup before the first Session Manager API request. The message is now an info line that says so.
30
+
31
+ ### Version decision
32
+
33
+ Minor, not major. The removed routes were admin routes (admin JWT plus `plugin::magic-sessionmanager.access`) that only the plugin's own License page called, and that page ships in the same package and is removed with them. No feature was ever gated by a key, and the Content API, permissions, settings and session data are unchanged. Anyone who scripted the license routes with an admin token gets 404 or 405 now; see Migration.
34
+
35
+ ### Migration
36
+
37
+ 1. Nothing to do for most apps. Rebuild the admin (`npm run build`) after upgrading, as for every release.
38
+ 2. Remove scripts that call `/magic-sessionmanager/license/*`, and the variables `MAGIC_LICENSE_SERVER_URL` and `MAGIC_LICENSE_TIMEOUT_MS` if you set them.
39
+ 3. Bookmarks to `/admin/settings/magic-sessionmanager/license` open an empty settings page, as any unknown settings route does in Strapi 5.61; use Configuration or Analytics.
40
+
1
41
  # [4.10.0](https://github.com/Schero94/Magic-Sessionmanager/compare/v4.9.1...v4.10.0) (2026-11-07)
2
42
 
3
43
 
@@ -12,11 +52,9 @@
12
52
  * **admin:** send the settings revision and explain a concurrent save ([ef4e08a](https://github.com/Schero94/Magic-Sessionmanager/commit/ef4e08a19ac853e37c0affda27c54d1024879ab1))
13
53
  * **server:** keep lockout, rate limits, jobs and settings consistent across instances ([976fa67](https://github.com/Schero94/Magic-Sessionmanager/commit/976fa67e5299fcb3d02f1852645fecd85bb4419c))
14
54
 
15
- ## [Unreleased]
16
-
17
- Release type: minor (`feat` commits, no breaking change; API clients that send no settings `revision` behave as before).
55
+ ### Release notes: multi-instance deployments (pm2 cluster, Railway replicas)
18
56
 
19
- ### Multi-instance deployments (pm2 cluster, Railway replicas)
57
+ These notes were written as `[Unreleased]` on the branch and shipped in 4.10.0 (minor: `feat` commits, no breaking change; API clients that send no settings `revision` behave as before).
20
58
 
21
59
  Every hazard from the multi-instance audit (SM-MI-01 to SM-MI-14) is addressed for several Node processes sharing one database:
22
60
 
@@ -37,7 +75,7 @@ Every hazard from the multi-instance audit (SM-MI-01 to SM-MI-14) is addressed f
37
75
  * **Fix: a shortened cleanup interval could wait for the old job lease.** The idle-cleanup lease lasts one interval; a lease taken under the 30-minute default (for example by the process that ran before a restart) kept blocking the cleanup for up to 30 minutes after the interval was set to 5. A lease that ends more than 60 seconds later than a fresh one would may now be taken over. After a restart without a settings change the job keeps its schedule, so the first run on the new process can come up to one interval after the last run on the old one.
38
76
  * **Fix: parallel "log out other devices" calls could answer 500.** Two requests (on one or several instances) revoked the same native session; the one that lost the race treated "already revoked" as a failure. A native revoke that is not confirmed now succeeds when the session is no longer active, and still fails when it is.
39
77
 
40
- ### Migration
78
+ ### Migration to 4.10.0
41
79
 
42
80
  * On start the plugin creates three tables: `magic_sm_counters`, `magic_sm_leases`, `magic_sm_cache`. The database user needs the `CREATE` privilege once. Strapi's schema sync does not touch these tables.
43
81
  * New optional config `coordination: { enabled, counterStore }`. `enabled: false` restores per-process state.
@@ -254,7 +292,7 @@ The native Strapi Users & Permissions end-user session support from 2f00880 cove
254
292
 
255
293
  ### Bug Fixes
256
294
 
257
- * **deps:** bump devDependencies (sdk-plugin v6, design-system 2.2, styled-components 6.4) ([bf9a743](https://github.com/Schero94/Magic-Sessionmanager/commit/bf9a7433995dc96c23f8f4a149081fe858b7332f)), closes [package.json#exports](https://github.com/package.json/issues/exports)
295
+ * **deps:** bump devDependencies (sdk-plugin v6, design-system 2.2, styled-components 6.4) ([bf9a743](https://github.com/Schero94/Magic-Sessionmanager/commit/bf9a7433995dc96c23f8f4a149081fe858b7332f))
258
296
 
259
297
  ## [4.5.6](https://github.com/Schero94/Magic-Sessionmanager/compare/v4.5.5...v4.5.6) (2026-04-20)
260
298
 
package/README.md CHANGED
@@ -1,22 +1,26 @@
1
1
  # Magic Session Manager
2
2
 
3
- **See who is signed in to your Strapi app, and control their sessions.**
3
+ **See who is signed in to your Strapi 5 app, end any session in one click, and stop password guessing before it reaches your users.**
4
4
 
5
- Session Manager records every sign-in of your app's users (Users & Permissions) as a session and lets admins see, end and analyse them. Strapi admin accounts are not managed here.
5
+ Magic Session Manager records every sign-in through Users & Permissions as a session. Admins see who is online, end single sessions or all sessions of a user, block accounts and review sign-in history. Your app gets logout routes, a "my devices" list for users, failed-login lockout and optional country rules. It works with Strapi's native refresh-token sessions and with several server processes on one database.
6
6
 
7
- Free and open under the MIT license. All features are available without a paid license or activation key.
7
+ Free and open source under the MIT license. Every feature works without an account, key or activation, and the plugin sends nothing to its author.
8
8
 
9
- [![NPM](https://img.shields.io/npm/v/strapi-plugin-magic-sessionmanager.svg)](https://www.npmjs.com/package/strapi-plugin-magic-sessionmanager)
10
- [![License](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
9
+ [![npm version](https://img.shields.io/npm/v/strapi-plugin-magic-sessionmanager.svg)](https://www.npmjs.com/package/strapi-plugin-magic-sessionmanager)
10
+ [![npm downloads](https://img.shields.io/npm/dm/strapi-plugin-magic-sessionmanager.svg)](https://www.npmjs.com/package/strapi-plugin-magic-sessionmanager)
11
+ [![Tests](https://github.com/Schero94/Magic-Sessionmanager/actions/workflows/test.yml/badge.svg)](https://github.com/Schero94/Magic-Sessionmanager/actions/workflows/test.yml)
12
+ [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
11
13
 
12
- [Project site](https://schero94.github.io/Magic-Sessionmanager/) · [npm](https://www.npmjs.com/package/strapi-plugin-magic-sessionmanager) · [Issues](https://github.com/Schero94/Magic-Sessionmanager/issues) · [Changelog](CHANGELOG.md)
14
+ Live docs: [https://schero94.github.io/Magic-Sessionmanager/](https://schero94.github.io/Magic-Sessionmanager/) · [npm](https://www.npmjs.com/package/strapi-plugin-magic-sessionmanager) · [Changelog](CHANGELOG.md) · [Report a bug](https://github.com/Schero94/Magic-Sessionmanager/issues/new/choose) · [Discussions](https://github.com/Schero94/Magic-Sessionmanager/discussions)
13
15
 
14
- > **Release status.** The admin UI shown here is the redesign on the branch `claude/sessionmanager-ui-redesign`, which carries the fixes for the next release. Version 4.8.0 on npm was published before its acceptance gates closed and is **not accepted**; see [Maintenance status](#maintenance-status).
16
+ ![Sessions dashboard with four stat cards (Active, Idle, Ended, All), search, status filter and a table of sessions with state badges](pics/dashboard.png)
15
17
 
16
18
  ---
17
19
 
18
20
  ## Contents
19
21
 
22
+ - [Features](#features)
23
+ - [Quick start (1 minute)](#quick-start-1-minute)
20
24
  - [Screenshots](#screenshots)
21
25
  - [Core concepts](#core-concepts)
22
26
  - [Screens](#screens)
@@ -28,27 +32,70 @@ Free and open under the MIT license. All features are available without a paid l
28
32
  - [Login protection](#login-protection)
29
33
  - [Alerts](#alerts)
30
34
  - [Content API](#content-api)
35
+ - [Examples](#examples)
31
36
  - [Optional route policy: `session-required`](#optional-route-policy-session-required)
32
37
  - [Admin API and permissions](#admin-api-and-permissions)
33
38
  - [Running several instances (Railway replicas, pm2 cluster)](#running-several-instances-railway-replicas-pm2-cluster)
39
+ - [Performance](#performance)
34
40
  - [Security and privacy](#security-and-privacy)
35
41
  - [Troubleshooting](#troubleshooting)
42
+ - [FAQ](#faq)
43
+ - [Migration and upgrading](#migration-and-upgrading)
36
44
  - [Development and tests](#development-and-tests)
45
+ - [Contributing](#contributing)
37
46
  - [Maintenance status](#maintenance-status)
38
47
  - [Languages](#languages)
39
48
  - [License](#license)
40
49
 
41
50
  ---
42
51
 
43
- ## Screenshots
52
+ ## Features
53
+
54
+ | Area | What you get |
55
+ | ---------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
56
+ | Overview | A sessions dashboard with Active, Idle and Ended counts, search, filters, CSV and JSON export, and a details dialog per session (device, browser, IP address, location, security score). |
57
+ | Control | End one session, end all sessions of a user, delete a record, or block a user. Ended sessions are rejected on the next request with 401 and a reason header. |
58
+ | Your users | Content API routes for "my sessions", "current session", log out, log out everywhere and log out other devices. Each user only ever sees their own sessions. |
59
+ | Login protection | Temporary IP lockout after failed sign-ins, Content API rate limits, optional rejection of VPN, proxy or low-score sign-ins, and country allow or block lists. |
60
+ | Location | IP location from a local MaxMind GeoLite2 database (no third party in the sign-in path) or from ipapi.co, or turned off. |
61
+ | Alerts | Security emails to the user through Strapi's Email plugin and sign-in notifications to Discord or Slack. |
62
+ | Admin integration | A Sessions panel next to each user in the Content Manager and an Online users widget on the Strapi homepage. |
63
+ | Native Strapi sessions | Works with `jwtManagement: 'refresh'` (Strapi's own sessions and refresh tokens) and with `'legacy-support'`. |
64
+ | Several processes | Lockout, rate limits, jobs and settings stay consistent across pm2 workers and Railway replicas that share one database. |
65
+ | Privacy | Stored tokens are encrypted (AES-256-GCM) and never returned. Retention deletes old history automatically. No telemetry. |
44
66
 
45
- All screenshots use synthetic data: users `*.example.test`, IP addresses from the documentation range `203.0.113.0/24`, Strapi 5.61.
67
+ ---
46
68
 
47
- ### Sessions dashboard
69
+ ## Quick start (1 minute)
48
70
 
49
- ![Sessions dashboard with four stat cards (Active, Idle, Ended, All), search, status filter and a table of sessions with state badges](pics/dashboard.png)
71
+ ```bash
72
+ npm install strapi-plugin-magic-sessionmanager
73
+ ```
74
+
75
+ ```typescript
76
+ // config/plugins.ts
77
+ export default () => ({
78
+ 'magic-sessionmanager': { enabled: true },
79
+ });
80
+ ```
81
+
82
+ ```bash
83
+ # a stable key for token encryption (startup fails without it in production)
84
+ echo "SESSION_ENCRYPTION_KEY=$(node -e "console.log(require('crypto').randomBytes(32).toString('base64'))")" >> .env
85
+ npm run build && npm run develop
86
+ ```
87
+
88
+ Sign in to your app as an end user (`POST /api/auth/local`), open **Session Manager** in the admin menu and the new session is listed as **Active**. End it, and the same token gets 401 on its next request.
89
+
90
+ Yarn and pnpm work the same way (`yarn add strapi-plugin-magic-sessionmanager`, `pnpm add strapi-plugin-magic-sessionmanager`).
91
+
92
+ ---
93
+
94
+ ## Screenshots
50
95
 
51
- Dark mode:
96
+ All screenshots use synthetic data: users `*.example.test`, IP addresses from the documentation range `203.0.113.0/24`, Strapi 5.61.
97
+
98
+ ### Sessions dashboard in dark mode
52
99
 
53
100
  ![Sessions dashboard in the Strapi dark theme](pics/dashboard-dark.png)
54
101
 
@@ -126,7 +173,6 @@ Dark mode:
126
173
  | Strapi homepage | **Online users** widget | Who is online right now? |
127
174
  | Settings › Session Manager | **Configuration** | How should sessions and sign-ins behave? |
128
175
  | Settings › Session Manager | **Analytics** | How are sessions used over time and by device? |
129
- | Settings › Session Manager | **License** | Is a license key stored, and is it valid? |
130
176
 
131
177
  ### Sessions dashboard
132
178
 
@@ -163,7 +209,7 @@ Strapi 5.13 and later. Four tiles: **Online users** (of all registered users), *
163
209
 
164
210
  ### Settings › Session Manager
165
211
 
166
- Three links: **Configuration**, **Analytics** and **License**.
212
+ Two links: **Configuration** and **Analytics**.
167
213
 
168
214
  **Configuration** has five tabs, deep-linkable with `?tab=sessions|login-protection|location-data|alerts|data-retention`:
169
215
 
@@ -179,19 +225,20 @@ Three links: **Configuration**, **Analytics** and **License**.
179
225
 
180
226
  **Analytics** shows All sessions, Active sessions, Sign-ins in the last 24 hours and in the last 7 days (rolling windows), sessions by device and by browser, and the average session length, all from the latest loaded sessions.
181
227
 
182
- **License** shows whether an optional license key is stored and whether it is valid. It is read-only. All features are available with or without a key.
183
-
184
228
  ---
185
229
 
186
230
  ## Compatibility
187
231
 
188
- | Item | Supported |
189
- | ----------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
190
- | Strapi | 5 (`@strapi/strapi` peer range `^5.0.0`). Acceptance host: Strapi 5.61.0. |
191
- | Node.js | `^22.22.2 \|\| >=24.15.0` (`engines.node`) |
192
- | Users & Permissions | `jwtManagement: 'refresh'` and `'legacy-support'` |
193
- | Homepage widget | Strapi 5.13 and later (older versions have no widgets API; the rest works) |
194
- | Admin peer dependencies | `@strapi/design-system` `^2.0.0`, `@strapi/icons` `^2.0.0`, `react` / `react-dom` `^18.3.1`, `react-intl` `^6.0.0`, `react-router-dom` `^6.0.0`, `styled-components` `^6.0.0` |
232
+ | Item | Supported |
233
+ | ------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
234
+ | Strapi | 5 (`@strapi/strapi` peer range `^5.0.0`). Acceptance host: Strapi 5.61.0. |
235
+ | Node.js | `^22.22.2 \|\| >=24.15.0` (`engines.node`) |
236
+ | Users & Permissions | `jwtManagement: 'refresh'` and `'legacy-support'` |
237
+ | Homepage widget | Strapi 5.13 and later (older versions have no widgets API; the rest works) |
238
+ | Required peers | `@strapi/strapi` `^5.0.0`, `@strapi/plugin-users-permissions` `^5.0.0`, `react` / `react-dom` `^18.0.0`, `react-router-dom` `^6.0.0`, `styled-components` `^6.0.0`. A new Strapi 5 app already has all of them. |
239
+ | Optional peers | `@strapi/design-system` `^2.0.0`, `@strapi/icons` `^2.0.0`, `react-intl` `^6.0.0`. Strapi's admin brings them; they are marked optional so npm, Yarn and pnpm do not warn. |
240
+ | Package managers | npm, Yarn 1 and pnpm. Installing into a fresh Strapi 5.61 app prints no warning about this plugin. |
241
+ | Databases | PostgreSQL, MySQL, SQLite (several processes need PostgreSQL or MySQL, see [Running several instances](#running-several-instances-railway-replicas-pm2-cluster)). |
195
242
 
196
243
  ---
197
244
 
@@ -278,14 +325,14 @@ Static defaults from `server/src/config/index.js`; admin units and ranges from t
278
325
 
279
326
  | Key | Default | Admin unit and range | Configuration tab | Meaning |
280
327
  | ------------------------------------------------------------------- | --------------------------------------------- | ----------------------------------------------------------------- | ----------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
281
- | `inactivityTimeout` | 15 min (`900000` ms) | min, 1–1440 | Sessions | Unused this long, a session becomes idle and then ends as "Timed out". Also decides who counts as online. |
282
- | `maxSessionAgeDays` | 30 | days, 1–365 | Sessions | Maximum age from sign-in, regardless of activity. Applied on the session's next request. |
283
- | `lastSeenRateLimit` | 30 s (`30000` ms) | s, 5–300 | Sessions › Advanced | Minimum interval between "Last active" updates. |
284
- | `cleanupInterval` | 30 min (`1800000` ms) | min, 5–1440 | Sessions › Advanced | How often the idle check runs. It ends idle sessions and deletes nothing. It also runs at server start; with several instances only one runs it per interval. |
328
+ | `inactivityTimeout` | 15 min (`900000` ms) | min, 1 to 1440 | Sessions | Unused this long, a session becomes idle and then ends as "Timed out". Also decides who counts as online. |
329
+ | `maxSessionAgeDays` | 30 | days, 1 to 365 | Sessions | Maximum age from sign-in, regardless of activity. Applied on the session's next request. |
330
+ | `lastSeenRateLimit` | 30 s (`30000` ms) | s, 5 to 300 | Sessions › Advanced | Minimum interval between "Last active" updates. |
331
+ | `cleanupInterval` | 30 min (`1800000` ms) | min, 5 to 1440 | Sessions › Advanced | How often the idle check runs. It ends idle sessions and deletes nothing. It also runs at server start; with several instances only one runs it per interval. |
285
332
  | `cleanupUseDbDirect` | `false` | boolean | Sessions › Advanced | Idle check with one SQL update instead of the Document Service (skips lifecycle hooks). |
286
333
  | `strictSessionEnforcement` | `false` (Relaxed) | boolean | Sessions | Strict rejects tokens without a session record and requests where the check itself fails. Ended, expired and revoked sessions and blocked users are rejected in both modes. |
287
- | `sessionCreationGraceMs` | `5000` | ms, 0–30000 (shown in seconds) | Sessions › Advanced | Window after sign-in in which a token is accepted while its record is being created. |
288
- | `maxFailedLogins` | 5 | 0–100, 0 = off | Login protection | Temporary IP lockout threshold (failed sign-ins from one IP within 15 minutes). |
334
+ | `sessionCreationGraceMs` | `5000` | ms, 0 to 30000 (shown in seconds) | Sessions › Advanced | Window after sign-in in which a token is accepted while its record is being created. |
335
+ | `maxFailedLogins` | 5 | 0 to 100, 0 = off | Login protection | Temporary IP lockout threshold (failed sign-ins from one IP within 15 minutes). |
289
336
  | `trustedProxies` | off | boolean | Login protection | Read the client IP from proxy headers. Only behind a proxy you control. |
290
337
  | `blockSuspiciousSessions` | `false` | boolean | Login protection | Reject suspicious sign-ins. |
291
338
  | `geoLookupFailureMode` | `'auto'` | auto, allow, block | Login protection | What happens when the location cannot be determined. |
@@ -299,8 +346,8 @@ Static defaults from `server/src/config/index.js`; admin units and ranges from t
299
346
  | `alertOnSuspiciousLogin` / `alertOnNewLocation` / `alertOnVpnProxy` | `true` | boolean | Alerts | Which events send an email. |
300
347
  | `enableWebhooks` | `false` | boolean | Alerts | Team notifications. |
301
348
  | `discordWebhookUrl` / `slackWebhookUrl` | `''` | https URL on discord.com / discordapp.com, or hooks.slack.com | Alerts | Any other host is rejected. |
302
- | `retentionDays` | 90 | days, 1–365 or -1 (forever) | Data and retention | How long records of ended sessions are kept. Checked once a day across all instances, the first time about 5 minutes after the server starts. Open sessions are never deleted by retention. |
303
- | `rateLimitWriteMax` / `rateLimitReadMax` / `rateLimitWindowSeconds` | 10 / 120 / 60 | 1–1000 / 1–10000 / 10–3600 | not shown | Content API rate limits. Not editable in the UI; Save keeps the stored values. The write limit can only be made stricter than the route floor. |
349
+ | `retentionDays` | 90 | days, 1 to 365 or -1 (forever) | Data and retention | How long records of ended sessions are kept. Checked once a day across all instances, the first time about 5 minutes after the server starts. Open sessions are never deleted by retention. |
350
+ | `rateLimitWriteMax` / `rateLimitReadMax` / `rateLimitWindowSeconds` | 10 / 120 / 60 | 1 to 1000 / 1 to 10000 / 10 to 3600 | not shown | Content API rate limits. Not editable in the UI; Save keeps the stored values. The write limit can only be made stricter than the route floor. |
304
351
  | `emailTemplates` | empty | subject ≤ 200, HTML ≤ 10,000 (sanitised), text ≤ 5,000 characters | Alerts › Edit email templates | As soon as any template has content, only stored templates are used. Fill in all three, or none. |
305
352
 
306
353
  ### Environment variables
@@ -445,6 +492,64 @@ Example:
445
492
 
446
493
  ---
447
494
 
495
+ ## Examples
496
+
497
+ All examples use a synthetic host `https://api.example.test` and a placeholder token.
498
+
499
+ **A "Your devices" list in your app.** Load the caller's sessions; the current one comes first.
500
+
501
+ ```js
502
+ const res = await fetch('https://api.example.test/api/magic-sessionmanager/my-sessions', {
503
+ headers: { Authorization: `Bearer ${jwt}` },
504
+ });
505
+ const { data, meta } = await res.json();
506
+ // data[0].isCurrentSession === true, meta.active = number of open sessions
507
+ ```
508
+
509
+ **Sign out one other device** (not the current one):
510
+
511
+ ```bash
512
+ curl -X DELETE https://api.example.test/api/magic-sessionmanager/my-sessions/k2v8m1x0q9w7e5r3t1y6u4i2 \
513
+ -H "Authorization: Bearer <JWT>"
514
+ # {"message":"...","success":true,"alreadyTerminated":false}
515
+ ```
516
+
517
+ **Sign out everywhere except here** (for example after a password change):
518
+
519
+ ```bash
520
+ curl -X POST https://api.example.test/api/magic-sessionmanager/logout-others \
521
+ -H "Authorization: Bearer <JWT>"
522
+ # {"message":"2 other session(s) terminated","terminatedCount":2,"currentSessionPreserved":true}
523
+ ```
524
+
525
+ **React to an ended session in the client.** A request with an ended session gets 401 and the header `X-Session-Terminated-Reason`. Browsers only let cross-origin JavaScript read that header when CORS exposes it:
526
+
527
+ ```js
528
+ // config/middlewares.js
529
+ module.exports = [
530
+ // ...
531
+ { name: 'strapi::cors', config: { expose: ['X-Session-Terminated-Reason'] } },
532
+ // ...
533
+ ];
534
+ ```
535
+
536
+ ```js
537
+ async function api(path, jwt) {
538
+ const res = await fetch(`https://api.example.test${path}`, {
539
+ headers: { Authorization: `Bearer ${jwt}` },
540
+ });
541
+ if (res.status === 401) {
542
+ const reason = res.headers.get('X-Session-Terminated-Reason'); // logout, manual, idle, expired, blocked
543
+ if (reason === 'blocked') showMessage('This account is blocked.');
544
+ else if (reason) showMessage('You were signed out. Please sign in again.');
545
+ redirectToLogin();
546
+ }
547
+ return res.json();
548
+ }
549
+ ```
550
+
551
+ ---
552
+
448
553
  ## Optional route policy: `session-required`
449
554
 
450
555
  You do **not** need this policy for session revocation. The plugin wraps the Users & Permissions JWT check for every Content API request, so an ended, expired or revoked session is rejected on all routes without configuration. No plugin route attaches the policy.
@@ -480,29 +585,27 @@ module.exports = factories.createCoreRouter('api::order.order', {
480
585
 
481
586
  Prefix `/magic-sessionmanager` (Strapi admin API). Every route requires an authenticated Strapi admin **and** the permission `plugin::magic-sessionmanager.access` ("Access the Session Manager plugin"). The same permission controls the menu link, the settings links, the widget and the user panel. Admin responses never contain tokens or the internal `sessionId`.
482
587
 
483
- | Method | Path | Admin UI action |
484
- | -------- | -------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
485
- | GET | `/sessions` | Sessions dashboard, widget, Analytics (latest 1,000; `meta.truncated` when more exist) |
486
- | GET | `/sessions/active` | Open sessions only |
487
- | GET | `/user/:userId/sessions` | Sessions panel |
488
- | POST | `/sessions/:sessionId/terminate` | **End session** (reason `manual`; in refresh mode the Strapi session is revoked first; the record stays) |
489
- | DELETE | `/sessions/:sessionId` | **Delete record** (record removed, token stays revoked; an open session also ends) |
490
- | POST | `/sessions/clean-inactive` | **Delete ended sessions** (all users; open and idle sessions are not affected; does not run the idle check) |
491
- | POST | `/user/:userId/terminate-all` | **End all sessions** (reason `manual`) |
492
- | POST | `/user/:userId/toggle-block` | **Block user** / **Unblock user** |
493
- | GET | `/users/stats` | Widget totals (`totalUsers`, `blockedUsers`) |
494
- | GET | `/geolocation/:ipAddress` | **Look up location** |
495
- | GET | `/geoip/status` | GeoIP database status |
496
- | PUT | `/geoip/credentials` | Save or remove (`{ "clear": true }`) MaxMind credentials |
497
- | POST | `/geoip/update` | Update database / Force download |
498
- | GET, PUT | `/settings` | Configuration (PUT validates every field and returns `error.details.errors` on invalid input) |
499
- | GET | `/license/status` | License page |
500
- | POST | `/license/auto-create`, `/license/create`, `/license/ping`, `/license/store-key` | License service routes (no admin UI) |
501
- | POST | `/sessions/:sessionId/simulate-timeout` | Development only; removed when `NODE_ENV` is `production` or `staging` |
588
+ | Method | Path | Admin UI action |
589
+ | -------- | --------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
590
+ | GET | `/sessions` | Sessions dashboard, widget, Analytics (latest 1,000; `meta.truncated` when more exist) |
591
+ | GET | `/sessions/active` | Open sessions only |
592
+ | GET | `/user/:userId/sessions` | Sessions panel |
593
+ | POST | `/sessions/:sessionId/terminate` | **End session** (reason `manual`; in refresh mode the Strapi session is revoked first; the record stays) |
594
+ | DELETE | `/sessions/:sessionId` | **Delete record** (record removed, token stays revoked; an open session also ends) |
595
+ | POST | `/sessions/clean-inactive` | **Delete ended sessions** (all users; open and idle sessions are not affected; does not run the idle check) |
596
+ | POST | `/user/:userId/terminate-all` | **End all sessions** (reason `manual`) |
597
+ | POST | `/user/:userId/toggle-block` | **Block user** / **Unblock user** |
598
+ | GET | `/users/stats` | Widget totals (`totalUsers`, `blockedUsers`) |
599
+ | GET | `/geolocation/:ipAddress` | **Look up location** |
600
+ | GET | `/geoip/status` | GeoIP database status |
601
+ | PUT | `/geoip/credentials` | Save or remove (`{ "clear": true }`) MaxMind credentials |
602
+ | POST | `/geoip/update` | Update database / Force download |
603
+ | GET, PUT | `/settings` | Configuration (PUT validates every field and returns `error.details.errors` on invalid input) |
604
+ | POST | `/sessions/:sessionId/simulate-timeout` | Development only; removed when `NODE_ENV` is `production` or `staging` |
502
605
 
503
606
  **Block / unblock** (`toggle-block`): send `{ "blocked": true }` or `{ "blocked": false }`. This sets the state, is safe to retry and is what the admin UI sends. A request without a body still toggles, but is deprecated, because a retry after a lost response can reverse the intended state. A non-boolean `blocked` returns 400. The response contains `blocked` and `mode` (`explicit` or `toggle`). Blocking ends all open sessions with the reason `blocked`; if that fails, the response is 500 and the request can be retried.
504
607
 
505
- Errors use Strapi's `{ data: null, error }` envelope: 400 for invalid input, 404 for unknown IDs, 500 for server-side failures (502 for a failed MaxMind download, 503 when the license server is unreachable).
608
+ Errors use Strapi's `{ data: null, error }` envelope: 400 for invalid input, 404 for unknown IDs, 500 for server-side failures, 502 for a failed MaxMind download, 409 for a settings save based on an outdated `revision`.
506
609
 
507
610
  ---
508
611
 
@@ -512,17 +615,17 @@ The plugin works with several Strapi processes that share one database, for exam
512
615
 
513
616
  ### What is shared and how
514
617
 
515
- | State | How it stays consistent across processes |
516
- | -------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
517
- | Session validity (end, block, revoke, idle, expiry) | Read from `magic_sessions` on every request. State changes are conditional updates (`UPDATE … WHERE isActive = …`), so a stale read on one process can never revive a terminated session or overwrite a `manual` / `blocked` reason set by another one. |
518
- | Failed-login lockout (`maxFailedLogins`) | One counter per client IP (stored as a SHA-256 hash) in `magic_sm_counters`, updated with a single atomic `UPDATE`. A lock or a successful sign-in applies on every process at once and survives restarts. |
519
- | Content API rate limits | Same shared counters, keyed by route template and caller. The configured limit is the limit for the whole cluster, not per process. |
520
- | Idle cleanup, retention | A job lease in `magic_sm_leases`: every process keeps its timer, but only the process that takes the lease runs the job. Cleanup runs about once per `cleanupInterval`, retention once per day (first run about 5 minutes after a start). |
521
- | Permission setup, session indexes, plugin-store writes (settings, GeoIP credentials, license data) | A cluster-wide critical section: `pg_advisory_xact_lock` on PostgreSQL, a lease row on SQLite and MySQL. Duplicate Core Store rows and duplicate Authenticated-role permissions left by older versions are removed automatically. |
522
- | Settings cache | Each save bumps a shared revision. Every process checks it at most every 2 seconds and reloads when it changed, so a new policy applies everywhere within about 2 seconds. |
523
- | Concurrent settings saves | The admin sends the revision it loaded. If another administrator saved in between, the save is refused with 409 and nothing is overwritten. API clients that send no `revision` keep the previous behaviour. |
524
- | ipapi.co results and back-off | Shared through `magic_sm_cache` (IP stored only as a hash), so one lookup or one HTTP 429 serves all processes. |
525
- | `SESSION_ENCRYPTION_KEY` | Each process compares an HMAC check value of its key (never the key) at start and logs an error when instances use different keys. |
618
+ | State | How it stays consistent across processes |
619
+ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
620
+ | Session validity (end, block, revoke, idle, expiry) | Read from `magic_sessions` on every request. State changes are conditional updates (`UPDATE … WHERE isActive = …`), so a stale read on one process can never revive a terminated session or overwrite a `manual` / `blocked` reason set by another one. |
621
+ | Failed-login lockout (`maxFailedLogins`) | One counter per client IP (stored as a SHA-256 hash) in `magic_sm_counters`, updated with a single atomic `UPDATE`. A lock or a successful sign-in applies on every process at once and survives restarts. |
622
+ | Content API rate limits | Same shared counters, keyed by route template and caller. The configured limit is the limit for the whole cluster, not per process. |
623
+ | Idle cleanup, retention | A job lease in `magic_sm_leases`: every process keeps its timer, but only the process that takes the lease runs the job. Cleanup runs about once per `cleanupInterval`, retention once per day (first run about 5 minutes after a start). |
624
+ | Permission setup, session indexes, plugin-store writes (settings, GeoIP credentials) | A cluster-wide critical section: `pg_advisory_xact_lock` on PostgreSQL, a lease row on SQLite and MySQL. Duplicate Core Store rows and duplicate Authenticated-role permissions left by older versions are removed automatically. |
625
+ | Settings cache | Each save bumps a shared revision. Every process checks it at most every 2 seconds and reloads when it changed, so a new policy applies everywhere within about 2 seconds. |
626
+ | Concurrent settings saves | The admin sends the revision it loaded. If another administrator saved in between, the save is refused with 409 and nothing is overwritten. API clients that send no `revision` keep the previous behaviour. |
627
+ | ipapi.co results and back-off | Shared through `magic_sm_cache` (IP stored only as a hash), so one lookup or one HTTP 429 serves all processes. |
628
+ | `SESSION_ENCRYPTION_KEY` | Each process compares an HMAC check value of its key (never the key) at start and logs an error when instances use different keys. |
526
629
 
527
630
  The three `magic_sm_*` tables are created at startup with portable statements (PostgreSQL, MySQL, SQLite 3.24+). The database user needs the `CREATE` privilege once. Strapi leaves tables it does not manage untouched.
528
631
 
@@ -658,6 +761,23 @@ Measured over HTTP on an isolated Strapi 5.61 host with one PostgreSQL 16 databa
658
761
 
659
762
  ---
660
763
 
764
+ ## Performance
765
+
766
+ The plugin sits in the request path of every authenticated Content API call, so it keeps that path short:
767
+
768
+ | Work | How it is kept cheap |
769
+ | ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
770
+ | Session check per request | One lookup by token hash. Startup creates the indexes `idx_magic_sessions_token_hash` and `idx_magic_sessions_refresh_hash` if they are missing. |
771
+ | "Last active" updates | At most one write per session per `lastSeenRateLimit` (30 seconds by default), as a conditional update. |
772
+ | Settings | Cached for 30 seconds per process; a shared revision is checked at most every 2 seconds (one primary-key read). |
773
+ | User lookups | Resolving a user's `documentId` is cached for 5 minutes per process. |
774
+ | ipapi.co lookups | Results are cached for 24 hours (failures for 5 minutes) and shared across processes, with the IP stored only as a hash. A local MaxMind database avoids the network call entirely. |
775
+ | Admin lists | The dashboard and Analytics load at most the latest 1,000 sessions and say so when more exist. `GET /my-sessions` returns at most 200. |
776
+ | Idle cleanup | Runs on one process per interval (job lease). In `legacy-support` mode, `cleanupUseDbDirect: true` ends idle sessions with a single SQL update instead of one Document Service call per session. |
777
+ | Old history | Retention deletes ended sessions older than `retentionDays` (90 by default) once a day, so the table does not grow without bound. |
778
+
779
+ ---
780
+
661
781
  ## Security and privacy
662
782
 
663
783
  - **Encryption key.** Stored tokens are encrypted with AES-256-GCM using `SESSION_ENCRYPTION_KEY`. In production, startup fails without it. Outside production a derived development key is used with a warning. Changing the key makes existing encrypted tokens unreadable, so keep it stable. Generate one in **Configuration › Sessions › Advanced** ("Copy for .env" copies `SESSION_ENCRYPTION_KEY="…"`; nothing is saved in Strapi) or with:
@@ -670,6 +790,8 @@ Measured over HTTP on an isolated Strapi 5.61 host with one PostgreSQL 16 databa
670
790
  - **Revocation.** Ended, expired and revoked sessions and blocked users are rejected on every Content API request, in both token check modes. Tokens of deleted records stay on a revocation list.
671
791
  - **Password reset.** A successful password reset ends every older session of the user in both JWT modes.
672
792
  - **Privacy.** Session records contain IP addresses, user agents and location data. With the `auto` or `ipapi` provider, IP addresses can be sent to ipapi.co; use `local-mmdb` or turn off IP location lookup to avoid that. The details dialog never looks up a location unless you click **Look up location**. Set **Keep ended sessions for** to match your retention policy, and use **Delete ended sessions** or **Delete record** to remove history.
793
+ - **What leaves your server.** Only what you turn on: IP lookups at ipapi.co (provider `auto` without a local database, or `ipapi`), Discord or Slack webhooks (Team notifications), emails through your own Email provider (Security emails) and the MaxMind database download when you click **Update database** or run the updater. There is no telemetry, no install ping and no license check.
794
+ - **Reporting a vulnerability.** Please do not post exploit details in a public issue. Open an issue that asks for a private contact, or use the email address on the maintainer's GitHub profile, and you will get a reply before anything is published.
673
795
  - **Secrets.** MaxMind license keys are never returned to the browser. Webhook URLs grant posting rights to your channel; treat them as secrets. Exports never contain tokens.
674
796
  - **Admin sessions** of Strapi administrators are out of scope.
675
797
 
@@ -691,6 +813,59 @@ The plugin stores sessions in the `magic_sessions` table and revocations in its
691
813
 
692
814
  ---
693
815
 
816
+ ## FAQ
817
+
818
+ **Does it manage Strapi admin accounts?**
819
+ No. It manages end users of Users & Permissions (`plugin::users-permissions.user`). Strapi administrator sessions are out of scope.
820
+
821
+ **Do I need a license key, account or activation?**
822
+ No. Everything is free under MIT, and the plugin does not contact any license or telemetry server. The only key you may add is your own MaxMind key for the GeoLite2 database.
823
+
824
+ **Do I have to add the `session-required` policy to my routes?**
825
+ No. Revocation works on every Content API route without configuration. The policy is an optional, explicit per-route check.
826
+
827
+ **Does it work with `jwtManagement: 'refresh'`?**
828
+ Yes. Strapi issues, rotates and revokes its own sessions; the plugin adds device, IP address, location and history, and ends the native session when you end it in the admin.
829
+
830
+ **Can I run it on Railway with several replicas, or with pm2 in cluster mode?**
831
+ Yes, with PostgreSQL or MySQL shared by all processes. See [Running several instances](#running-several-instances-railway-replicas-pm2-cluster). No sticky sessions or Redis are needed.
832
+
833
+ **Does it send my users' IP addresses anywhere?**
834
+ Only if location lookup uses ipapi.co: provider `ipapi`, or `auto` without a local database. Choose `local-mmdb` with a MaxMind database, or `disabled`, to keep IP addresses on your server.
835
+
836
+ **Why do my sign-ins get 429?**
837
+ The temporary IP lockout counts failed sign-ins per IP address. Behind a proxy, turn on Koa's proxy mode or **Trust proxy headers**, otherwise all users share the proxy's address. See [Troubleshooting](#troubleshooting).
838
+
839
+ **What happens to my data when I uninstall?**
840
+ Session history lives in the content-type tables `magic_sessions` and `magic_session_revocations`, which Strapi's schema sync manages. The three coordination tables `magic_sm_counters`, `magic_sm_leases` and `magic_sm_cache` are not managed by Strapi and stay until you drop them.
841
+
842
+ ---
843
+
844
+ ## Migration and upgrading
845
+
846
+ ### To the next release (license removal, from 4.10.x)
847
+
848
+ Nothing to do for most apps.
849
+
850
+ 1. The Settings › Session Manager › License page is gone; Settings shows **Configuration** and **Analytics**. Bookmarks to `/admin/settings/magic-sessionmanager/license` open an empty settings page, as any unknown settings route does in Strapi 5.61.
851
+ 2. The admin routes `GET /magic-sessionmanager/license/status` and `POST /magic-sessionmanager/license/{auto-create,create,ping,store-key}` are removed. Only the plugin's own License page called them. If you scripted them with an admin token, remove those calls.
852
+ 3. On first start the plugin deletes its stored `licenseKey`, `lastValidated` and `deviceId` values from the Core Store. Your MaxMind credentials and all settings stay.
853
+ 4. The environment variables `MAGIC_LICENSE_SERVER_URL` and `MAGIC_LICENSE_TIMEOUT_MS` are no longer read; you can delete them.
854
+ 5. `@strapi/utils` moved from `peerDependencies` to `dependencies`, and `@strapi/design-system`, `@strapi/icons` and `react-intl` are now optional peers. Package managers stop warning about them; no change in your `package.json` is needed.
855
+
856
+ ### From 4.8.x or older 4.x
857
+
858
+ Upgrade to the latest 4.x directly. Notable changes on the way:
859
+
860
+ - 4.9.0: `POST /magic-sessionmanager/user/:userId/toggle-block` should get `{ "blocked": true }` or `{ "blocked": false }`; a bodyless toggle still works but is deprecated. Settings reject out-of-range values with field errors instead of clamping them.
861
+ - 4.10.0: three tables (`magic_sm_counters`, `magic_sm_leases`, `magic_sm_cache`) are created at startup; the database user needs the `CREATE` privilege once. Lockout counters start empty after the upgrade. `coordination: { enabled: false }` restores per-process state.
862
+
863
+ ### From 3.x (Strapi 4) to 4.x (Strapi 5)
864
+
865
+ Version 4.0.0 moved to Strapi 5 and its Document Service API. Upgrade Strapi itself first with the [official Strapi 5 upgrade guide](https://docs.strapi.io/cms/migration/v4-to-v5/introduction-and-faq), then install the latest 4.x of this plugin, rebuild the admin (`npm run build`) and restart. Sessions are addressed by `documentId` in 4.x; clients that stored numeric session ids must switch to `documentId`.
866
+
867
+ ---
868
+
694
869
  ## Development and tests
695
870
 
696
871
  ```bash
@@ -712,14 +887,23 @@ Releases use Conventional Commits and semantic-release on Node.js 22 with npm Tr
712
887
 
713
888
  ---
714
889
 
890
+ ## Contributing
891
+
892
+ Issues and pull requests are welcome.
893
+
894
+ - Bugs and feature ideas: [open an issue](https://github.com/Schero94/Magic-Sessionmanager/issues/new/choose) (templates included). Questions: [Discussions](https://github.com/Schero94/Magic-Sessionmanager/discussions).
895
+ - Pull requests: branch from `main`, write a failing test first, and use Conventional Commits (`fix:`, `feat:`, `docs:`; a breaking change needs a `BREAKING CHANGE:` footer). Before you push, run `npm run lint`, `npm run format:check`, `npm test`, both type checks and `npm run build && npm run verify`.
896
+ - Use synthetic data only in tests, screenshots and issues: `*.example.test` addresses and IP addresses from `203.0.113.0/24`. Never paste real tokens.
897
+
898
+ ---
899
+
715
900
  ## Maintenance status
716
901
 
717
- As of 2026-11-06:
902
+ Actively maintained for the Strapi 5 line. Releases are cut by semantic-release from `main` using Conventional Commits and published to npm with npm Trusted Publishing (GitHub OIDC). Dependabot proposes weekly dependency updates; patch and minor updates are merged only after lint, tests, both type checks, build and `verify` pass.
718
903
 
719
- - **4.8.0 is not accepted.** It was released before its acceptance gates closed. Known defects in 4.8.0, fixed on the redesign branch: the Session details dialog had no accessible name; Settings field hints, including the GeoIP privacy note, did not render; three Settings alerts had unnamed close buttons and country chips could not be removed with the keyboard; in `legacy-support` mode a password reset left older sessions usable; a failed block followed by a retry of the bodyless toggle unblocked the user; the Content API rate limiter could be bypassed by varying the path. See [CHANGELOG.md](CHANGELOG.md).
720
- - **Accepted on the redesign branch:** clean install, 749 of 749 tests, both type checks, build, `verify` and `verify:runtime`, `npm pack --dry-run`; desktop and mobile browser passes for every screen on an isolated Strapi 5.61.0 host with synthetic data; the strict source symmetry contract (no `window.confirm`, emoji, colour literals, px font sizes or custom media queries).
721
- - **Still open before the next release:** full keyboard and screen-reader walks in five locales, dark-mode contrast, the complete state matrix, measured layout symmetry at every breakpoint, a fresh-database host boot, and a consent decision for the `auto` provider's ipapi.co default.
722
- - **Dependency advisories:** the recorded high-severity findings come through the Strapi 5 core dependency chain (`braces` GHSA-vfj7-8cjw-p6xm, Zod GHSA-mrhx-c7xc-m3w5 via `@strapi/utils` 5.61.0). No compatible fix exists; the forced npm fix downgrades to Strapi 4, so none was applied.
904
+ Dependency advisories: the remaining high-severity findings come through the Strapi 5 core dependency chain (`braces` GHSA-vfj7-8cjw-p6xm, Zod GHSA-mrhx-c7xc-m3w5 via `@strapi/utils` 5.61.0). The plugin cannot fix them; the forced npm fix would downgrade to Strapi 4, so it is not applied.
905
+
906
+ Version 4.8.0 was published before its acceptance gates closed and has known defects that 4.9.0 fixed (see the [CHANGELOG](CHANGELOG.md)). Use 4.9.0 or later.
723
907
 
724
908
  Report bugs at https://github.com/Schero94/Magic-Sessionmanager/issues.
725
909
 
@@ -734,5 +918,3 @@ The admin interface is available in English, German (formal "Sie"), French, Span
734
918
  ## License
735
919
 
736
920
  MIT License. Copyright © 2025 Schero D. See [LICENSE](./LICENSE).
737
-
738
- **License page.** Settings › Session Manager › License shows whether an optional license key is stored and valid. The key is used for install tracking and support context only; it does not unlock or restrict any feature.
@@ -9,7 +9,7 @@ const styled = require("styled-components");
9
9
  const designSystem = require("@strapi/design-system");
10
10
  const icons = require("@strapi/icons");
11
11
  const symbols = require("@strapi/icons/symbols");
12
- const index = require("./index-CaLVyCio.js");
12
+ const index = require("./index-DvNfekoR.js");
13
13
  const SectionCard = require("./SectionCard-BlWv8CRt.js");
14
14
  const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
15
15
  const styled__default = /* @__PURE__ */ _interopDefault(styled);
@@ -7,7 +7,7 @@ import styled from "styled-components";
7
7
  import { Typography, Flex, LinkButton, Button, EmptyStateLayout, VisuallyHidden } from "@strapi/design-system";
8
8
  import { ArrowClockwise, ChartBubble, User, Clock, Calendar } from "@strapi/icons";
9
9
  import { EmptyDocuments } from "@strapi/icons/symbols";
10
- import { N as normalizeDeviceType, u as useSessionFormatters, m as pluginId, s as requireSessionList, n as logSafeAdminError, o as PersistentAlert, R as ReadableText, z as PageShell, A as StatGrid, B as StatCard, I as EqualGrid, b as getTranslation, O as getDeviceTypeMessage } from "./index-CHACmZsg.mjs";
10
+ import { N as normalizeDeviceType, u as useSessionFormatters, m as pluginId, s as requireSessionList, n as logSafeAdminError, o as PersistentAlert, R as ReadableText, z as PageShell, A as StatGrid, B as StatCard, I as EqualGrid, b as getTranslation, O as getDeviceTypeMessage } from "./index-qa6Qnfkc.mjs";
11
11
  import { S as SectionCard } from "./SectionCard-D51bv4Hi.mjs";
12
12
  const ANALYTICS_UNKNOWN_KEY = "unknown";
13
13
  function increment(target, key) {