insforge 0.3.1 → 0.3.3

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.
@@ -239,19 +239,18 @@ export class AuthService {
239
239
  const { payload } = await verifyCloudToken(code);
240
240
 
241
241
  // If verification succeeds, extract user info and generate internal token
242
- const adminId = payload['userId'] || ADMIN_ID;
243
242
  const email = payload['email'] || payload['sub'] || 'admin@insforge.local';
244
243
 
245
244
  // Generate internal access token
246
245
  const accessToken = this.generateToken({
247
- sub: adminId as string,
246
+ sub: ADMIN_ID,
248
247
  email: email as string,
249
248
  role: 'project_admin',
250
249
  });
251
250
 
252
251
  return {
253
252
  user: {
254
- id: adminId as string,
253
+ id: ADMIN_ID,
255
254
  email: email as string,
256
255
  name: 'Administrator',
257
256
  emailVerified: true,
@@ -354,7 +354,7 @@ console.log(otherUser.nickname); // Direct access to properties
354
354
 
355
355
  ### Edge Functions
356
356
  - **SDK Availability**: `createClient` is globally available - no import needed
357
- - **Token Handling**: Extract from `Authorization` header, use as `anonKey` parameter
357
+ - **Token Handling**: Extract from `Authorization` header, use as `edgeFunctionToken` parameter
358
358
  - **Flexible Auth**: Can use user token or anon token (from `ACCESS_API_KEY` env var)
359
359
  - **Backend Validation**: Tokens are validated by backend on each SDK request
360
360
  - **Internal Networking**: Use `BACKEND_INTERNAL_URL` environment variable (defaults to `http://insforge:7130` for Docker container communication)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "insforge",
3
- "version": "0.3.1",
3
+ "version": "0.3.3",
4
4
  "description": "InsForge - Open source backend-as-a-service with PostgreSQL and MCP integration",
5
5
  "type": "module",
6
6
  "workspaces": [