Constructor
new UserConfig(opts)
Creates a UserConfig
Parameters:
Name | Type | Description |
---|---|---|
opts |
object | The configuration options. |
Methods
getConfig() → {Promise.<*>}
Get user configuration
Returns:
- Return the current user configuration
- Type
- Promise.<*>
getConfig() → {Promise.<*>}
Get user configuration
Returns:
- Return the current user configuration
- Type
- Promise.<*>
setHome(uuid) → {Promise.<any>|Promise.<(*|never)>}
Set user home
Parameters:
Name | Type | Description |
---|---|---|
uuid |
The uuid of the node |
Returns:
- Type
- Promise.<any> | Promise.<(*|never)>
setHome(uuid) → {Promise.<any>|Promise.<(*|never)>}
Set user home
Parameters:
Name | Type | Description |
---|---|---|
uuid |
The uuid of the node |
Returns:
- Type
- Promise.<any> | Promise.<(*|never)>
setRestUrl(restUrl)
Set the rest url
Parameters:
Name | Type | Description |
---|---|---|
restUrl |
The rest url |
setRestUrl(restUrl)
Set the rest url
Parameters:
Name | Type | Description |
---|---|---|
restUrl |
The rest url |
setToken(token)
Set the token in UserConfig variables
Parameters:
Name | Type | Description |
---|---|---|
token |
The authorization token value |
setToken(token)
Set the token in UserConfig variables
Parameters:
Name | Type | Description |
---|---|---|
token |
The authorization token value |