Authentication-based token generation
Learn about authentication-based token generation.
Read time 1 minuteLast updated 20 hours ago
Authentication-based token generation is the simplest way to handle token generation. Token generation will be handled automatically when the Unity Authentication package is present in a project that the Vivox SDK is in and you sign into Authentication before calling
VivoxService.Instance.Initializeusing Unity.Services.Authentication;public class VoiceManager : MonoBehaviour{ async void Start() { await UnityServices.InitializeAsync(); await AuthenticationService.Instance.SignInAnonymouslyAsync(); await VivoxService.Instance.InitializeAsync(); }}