Authentication-based token generation
Learn about authentication-based token generation.
阅读时间1 分钟最后更新于 12 天前
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(); }}