Class

PasswordClient

PasswordClient()

A class to handle passwords.
Constructor

# new PasswordClient()

View Source lib/client/PasswordClient.ts, line 14

Extends

Methods

# getRetryAfter(userID) → {number}

Returns the number of seconds the rate limiting is active for.
Parameters:
Name Type Description
userID string The UUID of the user.

View Source lib/client/PasswordClient.ts, line 141

number

# async login(userID, password) → {Promise.<void>}

Logs in a user with a password.
Parameters:
Name Type Description
userID string The UUID of the user.
password string The password.
See:

View Source lib/client/PasswordClient.ts, line 119

Promise.<void>

# async update(userID, password) → {Promise.<void>}

Updates a password.
Parameters:
Name Type Description
userID string The UUID of the user.
password string The new password.
See:

View Source lib/client/PasswordClient.ts, line 133

Promise.<void>