OpenTok Token Encoder

JSON →
library 1.1.1 ·javascript abandoned
verified May 27, 2026

The `opentok-token` package is a low-level utility designed to generate `X-TB-TOKEN-AUTH` headers for authentication with the OpenTok REST API. As of its current stable version, 1.1.1, it focuses solely on the encoding process, transforming provided token data, an API key, and an API secret into a JWT string. A critical characteristic of this package is its explicit lack of input validation; it does not check if the provided data aligns with OpenTok REST API semantics, allowing for the generation of syntactically correct but functionally invalid tokens. It offers default values for `create_time`, `expire_time`, `role`, and `nonce` if these properties are omitted from the token data. Its primary distinction is its role as a simple encoder, contrasting with the more comprehensive `opentok-node` server SDK, which provides a full suite of API interactions including data validation. Given its last update several years ago, the package is effectively no longer maintained, indicating an inactive release cadence.

total hits 42
actors 9 distinct systems
last hit 19h ago human
Amazonbot
4
MetaBot
4
GPTBot
2
Script
1
ClaudeBot
1
Search engines
2
Humans
2

top countries 🇨🇦 Canada · 🇺🇸 United States · 🇫🇷 France · 🇩🇪 Germany · 🇫🇮 Finland