@owbase/node 2.0.1 → 2.0.3

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.
@@ -254,10 +254,10 @@ declare class Users {
254
254
  * @param {string} params.email - User email.
255
255
  * @param {string} params.password - User password hashed using Scrypt.
256
256
  * @param {string} params.passwordSalt - Optional salt used to hash password.
257
- * @param {number} params.passwordCpu - Optional CPU cost used to hash password.
258
- * @param {number} params.passwordMemory - Optional memory cost used to hash password.
259
- * @param {number} params.passwordParallel - Optional parallelization cost used to hash password.
260
- * @param {number} params.passwordLength - Optional hash length used to hash password.
257
+ * @param {number} params.passwordCpu - Optional CPU cost used to hash password. Must be a power of two, at most 65536.
258
+ * @param {number} params.passwordMemory - Optional memory cost used to hash password. Maximum is 16.
259
+ * @param {number} params.passwordParallel - Optional parallelization cost used to hash password. Maximum is 4.
260
+ * @param {number} params.passwordLength - Optional hash length used to hash password. Must be between 16 and 128.
261
261
  * @param {string} params.name - User name. Max length: 128 chars.
262
262
  * @throws {OwbaseException}
263
263
  * @returns {Promise<Models.User<Preferences>>}
@@ -280,10 +280,10 @@ declare class Users {
280
280
  * @param {string} email - User email.
281
281
  * @param {string} password - User password hashed using Scrypt.
282
282
  * @param {string} passwordSalt - Optional salt used to hash password.
283
- * @param {number} passwordCpu - Optional CPU cost used to hash password.
284
- * @param {number} passwordMemory - Optional memory cost used to hash password.
285
- * @param {number} passwordParallel - Optional parallelization cost used to hash password.
286
- * @param {number} passwordLength - Optional hash length used to hash password.
283
+ * @param {number} passwordCpu - Optional CPU cost used to hash password. Must be a power of two, at most 65536.
284
+ * @param {number} passwordMemory - Optional memory cost used to hash password. Maximum is 16.
285
+ * @param {number} passwordParallel - Optional parallelization cost used to hash password. Maximum is 4.
286
+ * @param {number} passwordLength - Optional hash length used to hash password. Must be between 16 and 128.
287
287
  * @param {string} name - User name. Max length: 128 chars.
288
288
  * @throws {OwbaseException}
289
289
  * @returns {Promise<Models.User<Preferences>>}