Creates authentication tokens for a node.js client.
See tokenFactoryOptionsType
in file types.js
for the security
properties in sessionOptionsType
.
- Source:
Methods
newToken(msg, cb)
- Source:
Negotiates a new authentication token.
Parameters:
Name | Type | Description |
---|---|---|
msg |
msgType | A |
cb |
cbType | A callback to return the new token or an error. |
TokenFactory(options)
- Source:
Constructor.
Parameters:
Name | Type | Description |
---|---|---|
options |
sessionOptionsType | Extended properties. |