new Auth(app, config, help, load)
Create the service
Parameters:
| Name | Type | Description |
|---|---|---|
app |
App | The application |
config |
object | Configuration |
help |
Help | Help command |
load |
Load | Load command |
Members
-
<static> provides :string
-
Service name is 'commands.auth'
Type:
- string
-
<static> requires :Array.<string>
-
Dependencies as constructor arguments
Type:
- Array.<string>
Methods
-
<async> run(argv)
-
Run the command
Parameters:
Name Type Description argvArray.<string> Arguments Returns:
- Type
- Promise
-
<async> auth(token [, trackerName] [, sockName])
-
Authenticate the daemon
Parameters:
Name Type Argument Description tokenstring trackerNamestring <optional>
sockNamestring <optional>
Returns:
- Type
- Promise