strapi-plugin-magic-sessionmanager 4.2.13 → 4.2.14

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.
@@ -240,7 +240,19 @@ var lastSeen = ({ strapi: strapi2 }) => {
240
240
  }
241
241
  const skipPaths = [
242
242
  "/admin",
243
- // Admin panel routes (have their own auth)
243
+ // Admin panel UI
244
+ "/content-manager",
245
+ // Content Manager
246
+ "/content-type-builder",
247
+ // Content-Type Builder
248
+ "/upload",
249
+ // Media Library
250
+ "/i18n",
251
+ // Internationalization
252
+ "/users-permissions",
253
+ // Users & Permissions settings
254
+ "/email",
255
+ // Email plugin
244
256
  "/_health",
245
257
  // Health check
246
258
  "/favicon.ico",
@@ -266,6 +278,10 @@ var lastSeen = ({ strapi: strapi2 }) => {
266
278
  await next();
267
279
  return;
268
280
  }
281
+ if (!ctx.path.startsWith("/api/")) {
282
+ await next();
283
+ return;
284
+ }
269
285
  let matchingSession = null;
270
286
  try {
271
287
  const currentTokenHash = hashToken$3(currentToken);
@@ -236,7 +236,19 @@ var lastSeen = ({ strapi: strapi2 }) => {
236
236
  }
237
237
  const skipPaths = [
238
238
  "/admin",
239
- // Admin panel routes (have their own auth)
239
+ // Admin panel UI
240
+ "/content-manager",
241
+ // Content Manager
242
+ "/content-type-builder",
243
+ // Content-Type Builder
244
+ "/upload",
245
+ // Media Library
246
+ "/i18n",
247
+ // Internationalization
248
+ "/users-permissions",
249
+ // Users & Permissions settings
250
+ "/email",
251
+ // Email plugin
240
252
  "/_health",
241
253
  // Health check
242
254
  "/favicon.ico",
@@ -262,6 +274,10 @@ var lastSeen = ({ strapi: strapi2 }) => {
262
274
  await next();
263
275
  return;
264
276
  }
277
+ if (!ctx.path.startsWith("/api/")) {
278
+ await next();
279
+ return;
280
+ }
265
281
  let matchingSession = null;
266
282
  try {
267
283
  const currentTokenHash = hashToken$3(currentToken);
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "4.2.13",
2
+ "version": "4.2.14",
3
3
  "keywords": [
4
4
  "strapi",
5
5
  "strapi-plugin",