->authenticate()
Authenticates the current connection with a JWT token.
Arguments
| Arguments | Type | Description |
|---|---|---|
token
|
string
| The JWT authentication token. |
Example usage
You can invalidate the authentication for the current connection using the invalidate() method.