@insforge/sdk 1.0.1-schema.1 → 1.0.1-schema.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.
Files changed (2) hide show
  1. package/README.md +10 -0
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -64,6 +64,16 @@ await insforge.auth.signInWithOAuth({
64
64
  // Get current user
65
65
  const { data: user } = await insforge.auth.getCurrentUser();
66
66
 
67
+ // Get any user's profile by ID (public endpoint)
68
+ const { data: profile, error } = await insforge.auth.getProfile('user-id-here');
69
+
70
+ // Update current user's profile (requires authentication)
71
+ const { data: updatedProfile, error } = await insforge.auth.setProfile({
72
+ displayName: 'John Doe',
73
+ bio: 'Software developer',
74
+ avatarUrl: 'https://example.com/avatar.jpg'
75
+ });
76
+
67
77
  // Sign out
68
78
  await insforge.auth.signOut();
69
79
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@insforge/sdk",
3
- "version": "1.0.1-schema.1",
3
+ "version": "1.0.1-schema.3",
4
4
  "description": "Official JavaScript/TypeScript client for InsForge Backend-as-a-Service platform",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -49,7 +49,7 @@
49
49
  "url": "https://github.com/InsForge/insforge-sdk-js/issues"
50
50
  },
51
51
  "dependencies": {
52
- "@insforge/shared-schemas": "^1.1.31",
52
+ "@insforge/shared-schemas": "^1.1.32",
53
53
  "@supabase/postgrest-js": "^1.21.3",
54
54
  "socket.io-client": "^4.8.1"
55
55
  },