Error in user YAML: (<unknown>): mapping values are not allowed in this context at line 4 column 62
---
code: 40106
identifier: no_valid_authentication_method_provided
title: No valid authentication method provided
summary: The Ably SDK was given no usable way to authenticate: no API key, token, or token-request mechanism such as authCallback or authUrl was provided.
---
Configure the client with a way to authenticate. Set one of key, token, authUrl, or authCallback in the client options. For browser and mobile clients prefer authUrl or authCallback; for server-side use an API key.
The SDK was instantiated without any usable authentication option, so it had no API key, no token, and no means to obtain one. This is a configuration error raised by the SDK before it contacts Ably.
The error is reported with code 40106 and HTTP status 401. The message is typically No authentication options provided or authOptions must include valid authentication parameters.