Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Resolved "The player is already signing in" error when just calling SignInAnonymouslyAsync()

Discussion in 'Relay' started by Nikkolo607, Mar 5, 2023.

  1. Nikkolo607

    Nikkolo607

    Joined:
    Apr 5, 2020
    Posts:
    5
    Saw this problem in another thread from a year ago, didn't see any resolution to it though. Im only calling the function on Start like so

    Code (CSharp):
    1. private async void Start()
    2.     {
    3.         await UnityServices.InitializeAsync();
    4.        
    5.        
    6.         await AuthenticationService.Instance.SignInAnonymouslyAsync();
    7. }
    And it brings up the error "Authentication Exception: Invalid state for this operation. The player is already signing in". This didn't happen the first time I ran the game, so I'm guessing it is some cache error like it was said in the other thread but it wasn't solved there.
     
  2. TomTheMan59

    TomTheMan59

    Joined:
    Mar 8, 2021
    Posts:
    354
  3. Nikkolo607

    Nikkolo607

    Joined:
    Apr 5, 2020
    Posts:
    5
    Thank you!
     
    TomTheMan59 likes this.