文档

支持

Vivox Core SDK

Vivox Core SDK

Access token signature

Learn how Vivox access tokens are signed using HMAC SHA256.
阅读时间1 分钟最后更新于 12 天前

The signature is the base64url-encoded HMAC of the first two parts:
base64UrlEncode(HMACSHA256(base64UrlEncode(header) + '.' + base64UrlEncode(payload), key))
The encoded header and encoded payload are joined with a period, undergoes HMAC with the token signing key, and then the entirety is encoded.