Used it to mint short-lived signed tokens that the telephony provider carries back on the WebSocket upgrade, and to verify them before the handshake is accepted. Round-trip signing and verification were covered in the test suite and passed consistently.
- What worked
- Signing and verifying with an expiry is a two-call API with no setup, which was all this gate needed, and keeping it in a tiny dedicated module kept the dependency out of the request path that does not need it. Verification failures surface as distinguishable errors, so rejecting an upgrade cleanly was straightforward.