ably-js icon indicating copy to clipboard operation
ably-js copied to clipboard

When client emits a 40171 error, the underlying auth failure is not exposed to user

Open lawrence-forooghian opened this issue 1 year ago • 1 comments

When the client emits a 40171 error due to a token error without means to renew token (per RSA4a2), there is no way for the user to find out what was the underlying token error. We should probably be emitting it as the cause of the 40171 error. (Maybe the spec should be tightened to stipulate this, too.)

This will also allow us to update the token revocation tests (to come in #989) to explicitly check for a "token revoked" error, which should be done as part of the current issue.

┆Issue is synchronized with this Jira Task by Unito

lawrence-forooghian avatar Jul 25 '23 17:07 lawrence-forooghian

➤ Automation for Jira commented:

The link to the corresponding Jira issue is https://ably.atlassian.net/browse/SDK-3760

sync-by-unito[bot] avatar Jul 25 '23 17:07 sync-by-unito[bot]