Documentation

​
​

Development

User Acquisition

Monetization

Industry

Vivox Core SDK

Vivox Core SDK

Vivox
​
​
Vivox Core SDK
  • Overview
  • Before you begin
  • Get started
  • Release notes
  • Developer Guide
  • Reference
    • Access Token Developer Guide
      • Access token terminology
      • Requests that require access tokens
      • Access token identifiers
      • Access token format
      • Access token examples
      • Generate a token on the client
      • Generate a token on a secure server
      • Key update API
      • Override development key generation
      • Access token error codes
    • Server to Server Web API Reference Guide
    • Core API Reference Manual
    • Third-party license information
  • Privacy overview
  1. Vivox Core SDK documentation

Override development key generation

Learn about override development key generation.
Read time 1 minute
Last updated 8 months ago

Prerequisite: This topic assumes you have already created a token generation service.
Don't include development and testing codes, such as those generated in
VxTokenGen.cs
, in any final shipped build. Instead, write a new class that inherits from
VxTokenGen.cs
and overrides the existing functions. This sends the relevant information for each key out to the new secure token generation server.
Configure this new class to override the
GetToken()
method within
VxTokenGen.cs
. The following code displays an example of this class:
public class MyTokenGenOverride : VxTokenGen{ public override string GetToken(string issuer = null, TimeSpan? expiration = null, string userUri = null, string action = null, string tokenKey = null, string conferenceUri = null, string fromUserUri = null) { //Server Token Generation calls go here }}public void SetTokenOverride(){ Client.tokenGen = new MyTokenGenOverride();}
Afterward, use this class to replace the value of the
Client.tokenGen
variable. All further calls through
 GetLoginToken, GetJoinToken, GetMuteForAllToken,
and
GetTranscriptionToken
will route their UserUri and other assorted parameters through to the server generation code.

Copyright © 2026 Unity Technologies
LegalPrivacy PolicyCookiesDocumentation Terms of UseDo Not Sell or Share My Personal InformationYour Privacy Choices (Cookie Settings)

"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S and elsewhere (more info here). Other names or brands are trademarks of their respective owners.

Some pages are machine-translated for convenience, and may contain inaccuracies. In the event of conflicting information, the English version is authoritative.


    Report a problem with this page