@base44-preview/sdk 0.8.27-pr.171.bb56537 → 0.8.28-pr.174.7916e18
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/dist/modules/auth.types.d.ts +7 -14
- package/package.json +1 -1
|
@@ -126,25 +126,18 @@ export interface AuthModule {
|
|
|
126
126
|
*/
|
|
127
127
|
me(): Promise<User>;
|
|
128
128
|
/**
|
|
129
|
-
* Updates the current authenticated user's
|
|
129
|
+
* Updates the current authenticated user's custom profile fields.
|
|
130
130
|
*
|
|
131
|
-
* Only
|
|
132
|
-
*
|
|
131
|
+
* Only custom fields defined in your User entity schema can be updated.
|
|
132
|
+
* Platform-managed fields (`id`, `email`, `full_name`, `created_date`,
|
|
133
|
+
* `updated_date`, `app_id`, `is_verified`, `is_service`, `disabled`, and `role`)
|
|
134
|
+
* are read-only and cannot be changed with this method.
|
|
133
135
|
*
|
|
134
|
-
* @param data - Object containing the fields to update.
|
|
136
|
+
* @param data - Object containing the custom fields to update.
|
|
135
137
|
* @returns Promise resolving to the updated user data.
|
|
136
138
|
*
|
|
137
139
|
* @example
|
|
138
140
|
* ```typescript
|
|
139
|
-
* // Update specific fields
|
|
140
|
-
* const updatedUser = await base44.auth.updateMe({
|
|
141
|
-
* full_name: 'John Doe'
|
|
142
|
-
* });
|
|
143
|
-
* console.log(`Updated user: ${updatedUser.full_name}`);
|
|
144
|
-
* ```
|
|
145
|
-
*
|
|
146
|
-
* @example
|
|
147
|
-
* ```typescript
|
|
148
141
|
* // Update custom fields defined in your User entity
|
|
149
142
|
* await base44.auth.updateMe({
|
|
150
143
|
* bio: 'Software developer',
|
|
@@ -153,7 +146,7 @@ export interface AuthModule {
|
|
|
153
146
|
* });
|
|
154
147
|
* ```
|
|
155
148
|
*/
|
|
156
|
-
updateMe(data:
|
|
149
|
+
updateMe(data: Record<string, any>): Promise<User>;
|
|
157
150
|
/**
|
|
158
151
|
* Redirects the user to the app's login page.
|
|
159
152
|
*
|