Constructor
# new TokenManager(robot, timestampopt)
Create an instance of TokenManager's class.
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
robot |
Object
|
Robot object. | ||
timestamp |
number
|
<optional> |
null | The date in timestamp to use. |
Methods
# async update()
Refresh the user token as needed.