Hi, everyone!
Trying to build my first multiplayer using NetCode and all that new good stuff. But, every time I have the same error when trying to authenticate anonymously. Printing “AnalyticsSessionInfo.identityToken” displays an empty string!
Errors:
[Authentication]: Token has expired. […]
Unity.Services.Authentication.JwtDecoder:smile:ecode<Unity.Services.Authentication.AccessToken> (string,Unity.Services.Authentication.WellKnownKey[ ]) (at Library/PackageCache/com.unity.services.authentication@2.1.1/Runtime/Utilities/Jwt/JwtDecoder.cs:51)
Unity.Services.Authentication.AuthenticationServiceInternal:CompleteSignIn …
-----:::::
RequestFailedException: Failed to decode and verify access token.
Unity.Services.Authentication.AuthenticationServiceInternal.CompleteSignIn (Unity.Services.Authentication.SignInResponse response, System.Boolean enableRefresh) (at Library/PackageCache/com.unity.services.authentication@2.1.1/Runtime/AuthenticationServiceInternal.cs:504)…
private async Task Authenticate()
{
Debug.Log($"Starting authentication...");
await UnityServices.InitializeAsync();
Debug.Log($"Signing In Anonymously Async...");
await AuthenticationService.Instance.SignInAnonymouslyAsync();
}