Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Question Unity Authentication after reinstalling

Discussion in 'Authentication' started by unity_48CEDB9C94B428023987, Jun 12, 2023.

  1. unity_48CEDB9C94B428023987

    unity_48CEDB9C94B428023987

    Joined:
    Sep 28, 2021
    Posts:
    8
    If I am using Unity Authentication anonymous sign-in and also provide options for sign in with external providers like Google and Facebook, what will happen if the user reinstall the app? If his profile has been connected to a third party, the scenario is pretty clear, but what if he has signed anonymously ? Will his profile be restored or a new one will be created?
     
  2. erickb_unity

    erickb_unity

    Unity Technologies

    Joined:
    Sep 1, 2021
    Posts:
    100
    Hello
    You will get a new anonymous account on the device when reinstalling.
    Anonymous login is based on a session token which is stored locally on the device and won't be available after reinstall or on another device.

    In order to let your players restore their account, you must support another identity provider such as facebook, google, apple, etc.

    You can find more information on Anonymous Authentication here: https://docs.unity.com/authentication/en-us/manual/use-anon-signin
     
  3. unity_48CEDB9C94B428023987

    unity_48CEDB9C94B428023987

    Joined:
    Sep 28, 2021
    Posts:
    8
    Thank you very much for the fast response!