new AuthBucket(setup, parent)
Creates a new instance of the AuthBucket class.
Parameters:
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
setup |
Object | The setup object containing authentication details. Properties
|
|||||||||
parent |
Object | The parent object to which this AuthBucket belongs. |
- Source:
Throws:
-
If setup parameters are missing or invalid.
- Type
- Error.Log
Members
password
The hashed password associated with the user.
Properties:
| Type | Description |
|---|---|
| string |
- Source:
service
The AuthService instance associated with this AuthBucket.
Properties:
| Type | Description |
|---|---|
| AuthService |
- Source:
user
The user object containing user-specific details.
Properties:
| Type | Description |
|---|---|
| Object |
- Source:
userName
Gets the username associated with this AuthBucket.
- Source:
userUID
Gets the unique identifier of the user associated with this AuthBucket.
- Source:
Methods
(async, static) draft(user) → {Promise.<AuthBucket>}
Creates a draft AuthBucket for the given user.
Parameters:
| Name | Type | Description |
|---|---|---|
user |
Object | The user object containing necessary details. |
- Source:
Throws:
-
If there is an error during the AuthBucket creation process.
- Type
- Error.Log
Returns:
- The created AuthBucket instance.
- Type
- Promise.<AuthBucket>