@layer-ai/core 0.1.3 → 0.1.4

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 +1 @@
1
- {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/routes/auth.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,SAAS,CAAC;AAKpD,QAAA,MAAM,MAAM,EAAE,UAAqB,CAAC;AA4FpC,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/routes/auth.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,SAAS,CAAC;AAKpD,QAAA,MAAM,MAAM,EAAE,UAAqB,CAAC;AAoGpC,eAAe,MAAM,CAAC"}
@@ -79,4 +79,11 @@ router.post('/token', async (req, res) => {
79
79
  res.status(500).json({ error: 'internal_error', message: 'Failed to create api key' });
80
80
  }
81
81
  });
82
+ // GET /auth/session
83
+ // This endpoint is used by NextAuth to check session status
84
+ router.get('/session', async (req, res) => {
85
+ // For now, return null session (not authenticated via this endpoint)
86
+ // NextAuth will handle sessions via its own mechanism
87
+ res.json({ user: null });
88
+ });
82
89
  export default router;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@layer-ai/core",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Core API routes and services for Layer AI",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -23,11 +23,11 @@
23
23
  "license": "MIT",
24
24
  "repository": {
25
25
  "type": "git",
26
- "url": "https://github.com/yourusername/layer-ai.git",
26
+ "url": "https://github.com/micah-nettey/layer-ai.git",
27
27
  "directory": "packages/core"
28
28
  },
29
29
  "bugs": {
30
- "url": "https://github.com/yourusername/layer-ai/issues"
30
+ "url": "https://github.com/micah-nettey/layer-ai/issues"
31
31
  },
32
32
  "homepage": "https://uselayer.ai",
33
33
  "dependencies": {