authCallback bug, test coverage & additional type support #72
Labels
bug
Something isn't working. It's clear that this does need to be fixed.
enhancement
New feature or improved functionality.
authCallback currently has no test coverage in the library, we need to add some.
Additionally, we need to add support for the callback to return:
Based on the docs at
ably-js/common/lib/client/auth.js
Lines 155 to 156 in 1c8dd8f
See http://www.rubydoc.info/gems/ably/0.8.2/Ably%2FAuth%3Ainitialize as an example (under auth_callback),.
In our spec as well, we specify
When authCallback option is set, it will execute the callback and will expect either a token string, a TokenDetails object or a TokenRequest object which will in turn be used to request a token from Ably.
The text was updated successfully, but these errors were encountered: