@base44-preview/sdk 0.8.43-pr.261.f8cbcf8 → 0.8.44-pr.262.1f0f5a7
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.
|
@@ -134,12 +134,15 @@ export interface AuthModule {
|
|
|
134
134
|
/**
|
|
135
135
|
* Updates the current authenticated user's information.
|
|
136
136
|
*
|
|
137
|
-
* You can update
|
|
138
|
-
* User entity schema.
|
|
139
|
-
*
|
|
137
|
+
* You can update any [custom fields](/developers/backend/resources/entities/user-schema#custom-fields)
|
|
138
|
+
* defined in your User entity schema.
|
|
139
|
+
*
|
|
140
|
+
* Updating `role` requires editor access on the app.
|
|
141
|
+
*
|
|
140
142
|
* <Note>
|
|
141
|
-
*
|
|
142
|
-
* `id`, `email`, `full_name`, `created_date`, `updated_date`,
|
|
143
|
+
* These fields can't be changed with this method:
|
|
144
|
+
* `id`, `email`, `full_name`, `created_date`, `updated_date`, `created_by`,
|
|
145
|
+
* and `collaborator_role`.
|
|
143
146
|
* </Note>
|
|
144
147
|
*
|
|
145
148
|
* @param data - Object containing the fields to update.
|
|
@@ -147,9 +150,8 @@ export interface AuthModule {
|
|
|
147
150
|
*
|
|
148
151
|
* @example
|
|
149
152
|
* ```typescript
|
|
150
|
-
* // Update
|
|
153
|
+
* // Update custom fields defined in your User entity
|
|
151
154
|
* await base44.auth.updateMe({
|
|
152
|
-
* role: 'admin',
|
|
153
155
|
* bio: 'Software developer',
|
|
154
156
|
* preferences: { theme: 'dark' }
|
|
155
157
|
* });
|