Open mclark-ably opened 8 months ago
Just to add some more context on this:
x-ably-token
: https://ably.com/docs/auth/token?lang=javascript#embeddedBut from the diagram in (2), it makes it look like the Ably Token must be retrieved from Ably servers. However this is not the only option, any valid token that can be used to authenticate with Ably can be included in x-ably-token
, including one that you can construct yourself as documented in (1).
cc @paddybyers
On https://ably.com/docs/api/rest-api#token-authentication we talk about an Ably-compatible token which covers an Ably token or an Ably JWT
but then on https://ably.com/docs/auth/token?lang=javascript#embedded
Its not really clear that instead of embedding an Ably token (requiring a request to Ably) you can also embed an Ably JWT that is signed by the auth server
┆Issue is synchronized with this Jira Task by Unito