Interface: PasswordValidationServiceInterface
Password Storage Validation Interface
Methods
validate()
validate(
options):Promise<boolean>
Validate if password matches and its valid.
Parameters
| Parameter | Type | Description |
|---|---|---|
options | PasswordValidateOptionsInterface | Validation options |
Returns
Promise<boolean>
Defined in
validateObject()
validateObject<
T>(passwordPlain,object):Promise<boolean>
Validate password on an object.
Type Parameters
| Type Parameter |
|---|
T extends PasswordStorageInterface |
Parameters
| Parameter | Type | Description |
|---|---|---|
passwordPlain | string | Plain text password |
object | T | The object on which the password and salt are stored |
Returns
Promise<boolean>