Skip to content

Commit

Permalink
fix: update password jsdoc for v51 + return type
Browse files Browse the repository at this point in the history
  • Loading branch information
mshanemc committed Feb 5, 2021
1 parent 055a766 commit 390ed8d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,12 +241,15 @@ export class User extends AsyncCreatable<User.Options> {

/**
* Assigns a password to a user. For a user to have the ability to assign their own password, the org needs the
* following org preference: SelfSetPasswordInApi.
* following org feature: SelfSetPasswordInApi.
*
* @param info The AuthInfo object for user to assign the password to.
* @param password [throwWhenRemoveFails = User.generatePasswordUtf8()] A SecureBuffer containing the new password.
*/
public async assignPassword(info: AuthInfo, password: SecureBuffer<void> = User.generatePasswordUtf8()) {
public async assignPassword(
info: AuthInfo,
password: SecureBuffer<void> = User.generatePasswordUtf8()
): Promise<void> {
this.logger.debug(
`Attempting to set password for userId: ${info.getFields().userId} username: ${info.getFields().username}`
);
Expand Down

0 comments on commit 390ed8d

Please sign in to comment.