Type Definitions
# HashingFunction(password) → {Promise.<string>|string}
Parameters:
Name | Type | Description |
---|---|---|
password |
string
|
Password which should be hashed |
Promise.<string>
|
string
object
# PasswordsOptions
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
properties |
object
|
<optional> |
Names of the properties used by the feature |
password |
string
|
<optional> |
Virtual property which will be seen by end user. Its value is not stored in the database.,
Default to |
encryptedPassword |
string
|
<optional> |
Property where encrypted password will be stored. Default to |
hash |
HashingFunction
|
Function used to hash the password. You can pass function from the external library,
Example using Argon2.: |