Authenticates the current connection with a token, and stores it on the client for subsequent requests.
Method Syntax
client.authenticate(token, session)Arguments
Argument | Description |
|---|---|
token | The JWT to authenticate with. |
session | An optional session id. |
Example usage
client.authenticate("eyJhbGciOi...")