@insforge/sdk 1.0.1-schema.0 → 1.0.1-schema.2
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/README.md +10 -0
- package/package.json +1 -1
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