You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/backend/src/api/endpoints/UserApi.ts
+46Lines changed: 46 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -92,24 +92,70 @@ type CreateUserParams = {
92
92
(UserPasswordHashingParams|object);
93
93
94
94
typeUpdateUserParams={
95
+
/** The first name to assign to the user. */
95
96
firstName?: string;
97
+
98
+
/** The last name of the user. */
96
99
lastName?: string;
100
+
101
+
/** The username to give to the user. It must be unique across your instance. */
97
102
username?: string;
103
+
104
+
/** The plaintext password to give the user. Must be at least 8 characters long, and can not be in any list of hacked passwords. */
98
105
password?: string;
106
+
107
+
/** Set it to true if you're updating the user's password and want to skip any password policy settings check. This parameter can only be used when providing a password. */
99
108
skipPasswordChecks?: boolean;
109
+
110
+
/** Set to true to sign out the user from all their active sessions once their password is updated. This parameter can only be used when providing a password. */
100
111
signOutOfOtherSessions?: boolean;
112
+
113
+
/** The ID of the email address to set as primary. It must be verified, and present on the current user. */
101
114
primaryEmailAddressID?: string;
115
+
116
+
/** If set to true, the user will be notified that their primary email address has changed. By default, no notification is sent. */
117
+
notifyPrimaryEmailAddressChanged?: boolean;
118
+
119
+
/** The ID of the phone number to set as primary. It must be verified, and present on the current user. */
102
120
primaryPhoneNumberID?: string;
121
+
122
+
/** The ID of the web3 wallets to set as primary. It must be verified, and present on the current user. */
103
123
primaryWeb3WalletID?: string;
124
+
125
+
/** The ID of the image to set as the user's profile image */
104
126
profileImageID?: string;
127
+
128
+
/**
129
+
* In case TOTP is configured on the instance, you can provide the secret to enable it on the specific user without the need to reset it.
130
+
* Please note that currently the supported options are:
131
+
* - Period: 30 seconds
132
+
* - Code length: 6 digits
133
+
* - Algorithm: SHA1
134
+
*/
105
135
totpSecret?: string;
136
+
137
+
/** If Backup Codes are configured on the instance, you can provide them to enable it on the specific user without the need to reset them. You must provide the backup codes in plain format or the corresponding bcrypt digest. */
106
138
backupCodes?: string[];
139
+
140
+
/** The ID of the user as used in your external systems or your previous authentication solution. Must be unique across your instance. */
107
141
externalId?: string;
142
+
143
+
/** A custom timestamp denoting when the user signed up to the application, specified in RFC3339 format (e.g. 2012-10-20T07:15:20.902Z). */
108
144
createdAt?: Date;
145
+
146
+
/** When set to true all legal checks are skipped. It is not recommended to skip legal checks unless you are migrating a user to Clerk. */
109
147
skipLegalChecks?: boolean;
148
+
149
+
/** A custom timestamp denoting when the user accepted legal requirements, specified in RFC3339 format (e.g. 2012-10-20T07:15:20.902Z). */
110
150
legalAcceptedAt?: Date;
151
+
152
+
/** If true, the user can delete themselves with the Frontend API. */
111
153
deleteSelfEnabled?: boolean;
154
+
155
+
/** If true, the user can create organizations with the Frontend API. */
112
156
createOrganizationEnabled?: boolean;
157
+
158
+
/** The maximum number of organizations the user can create. 0 means unlimited. */
0 commit comments