localauth
- Description:
- Local (username/password) authentication
- Source:
Classes
- LocalAuthModule
- PasswordUtils
Methods
(static) exports.compare(plainPassword, hash) → {Promise}
- Description:
- Compares a plain password to a hash
- Source:
Parameters:
| Name |
Type |
Description |
plainPassword |
String
|
|
hash |
String
|
|
Returns:
-
Type
-
Promise
(static) exports.getRandomHex(size) → {Promise.<String>}
- Description:
- Creates a random hex string
- Source:
Parameters:
| Name |
Type |
Description |
size |
Number
|
Size of string |
Returns:
Resolves with the string value
-
Type
-
Promise.<String>
(static) exports.validate(password) → {Promise}
- Description:
- Validates a password against the stored config settings
- Source:
Parameters:
| Name |
Type |
Description |
password |
String
|
Password to validate |
Returns:
Resolves if the password passes the validation
-
Type
-
Promise