Error 40106 - Unable to obtain credentials from given parameters

Invalid authentication options (key/token) have been provided to the Ably client library such as no API key, no token and no means to create a token or not supplying the right kind of authentication eg trying to request a token using another token