I seem to be running into an issue where there are multiple instances of the Unity Authentication Service running if I sign in anonymously, sign out, then sign in again. At least, that’s what I think the issue is, since AuthenticationService.Instance.SignedIn
gets called twice. Is there a proper flow for exiting the service? Here are my reproduction steps:
await UnityServices.InitializeAsync();
await AuthenticationService.Instance.SignInAnonymouslyAsync();
- Result is single success message
AuthenticationService.Instance.SignOut(true);
await AuthenticationService.Instance.SignInAnonymouslyAsync();
- Result is two success messages