@commonpub/layer 0.8.7 → 0.8.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commonpub/layer",
3
- "version": "0.8.7",
3
+ "version": "0.8.8",
4
4
  "type": "module",
5
5
  "main": "./nuxt.config.ts",
6
6
  "files": [
@@ -54,12 +54,12 @@
54
54
  "vue-router": "^4.3.0",
55
55
  "zod": "^4.3.6",
56
56
  "@commonpub/docs": "0.6.2",
57
- "@commonpub/learning": "0.5.0",
57
+ "@commonpub/config": "0.9.1",
58
58
  "@commonpub/editor": "0.7.9",
59
+ "@commonpub/learning": "0.5.0",
59
60
  "@commonpub/auth": "0.5.1",
60
- "@commonpub/protocol": "0.9.9",
61
- "@commonpub/config": "0.9.1",
62
- "@commonpub/ui": "0.8.5"
61
+ "@commonpub/ui": "0.8.5",
62
+ "@commonpub/protocol": "0.9.9"
63
63
  },
64
64
  "devDependencies": {
65
65
  "@testing-library/jest-dom": "^6.9.1",
@@ -110,10 +110,13 @@ export default defineEventHandler(async (event) => {
110
110
  return;
111
111
  }
112
112
 
113
- // Handle auth API routes — skip our custom federated/oauth2 routes (Nitro handles those)
114
- const isBetterAuthRoute = pathname.startsWith('/api/auth')
115
- && !pathname.startsWith('/api/auth/federated/')
116
- && !pathname.startsWith('/api/auth/oauth2/');
113
+ // Handle auth API routes — skip custom routes that Nitro handles directly
114
+ const isCustomAuthRoute = pathname.startsWith('/api/auth/federated/')
115
+ || pathname.startsWith('/api/auth/oauth2/')
116
+ || pathname === '/api/auth/sign-in-username'
117
+ || pathname === '/api/auth/delete-user'
118
+ || pathname === '/api/auth/export-data';
119
+ const isBetterAuthRoute = pathname.startsWith('/api/auth') && !isCustomAuthRoute;
117
120
 
118
121
  if (isBetterAuthRoute) {
119
122
  try {