@base44-preview/sdk 0.8.43-pr.261.f8cbcf8 → 0.8.44-pr.262.e72ee90
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 +10 -7
- package/package.json +1 -1
|
@@ -134,12 +134,16 @@ 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. An app user without it
|
|
141
|
+
* gets a 403 response, and none of the other fields in the request are applied.
|
|
142
|
+
*
|
|
140
143
|
* <Note>
|
|
141
|
-
*
|
|
142
|
-
* `id`, `email`, `full_name`, `created_date`, `updated_date`,
|
|
144
|
+
* These fields can't be changed with this method:
|
|
145
|
+
* `id`, `email`, `full_name`, `created_date`, `updated_date`, `created_by`,
|
|
146
|
+
* and `collaborator_role`.
|
|
143
147
|
* </Note>
|
|
144
148
|
*
|
|
145
149
|
* @param data - Object containing the fields to update.
|
|
@@ -147,9 +151,8 @@ export interface AuthModule {
|
|
|
147
151
|
*
|
|
148
152
|
* @example
|
|
149
153
|
* ```typescript
|
|
150
|
-
* // Update
|
|
154
|
+
* // Update custom fields defined in your User entity
|
|
151
155
|
* await base44.auth.updateMe({
|
|
152
|
-
* role: 'admin',
|
|
153
156
|
* bio: 'Software developer',
|
|
154
157
|
* preferences: { theme: 'dark' }
|
|
155
158
|
* });
|