Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

Bug Failed to decode and verify access token

Discussion in 'Authentication' started by SpeedwayGameStudios, Apr 30, 2023.

  1. SpeedwayGameStudios

    SpeedwayGameStudios

    Joined:
    May 31, 2020
    Posts:
    4
    I'm using unity authentication for my project. In windows, authentication is working but in mac it's not working. Getting errors. I tried deleting player prefs file, cloning again from plastic scm then also getting same error.
     

    Attached Files:

  2. davialbuquerque

    davialbuquerque

    Unity Technologies

    Joined:
    Jun 3, 2021
    Posts:
    28
    Hi. I see in image you attached the message "Token is expired", in the current version of the Authentication SDK we validate if the expirationTime timestamp against the computer clock and most likely the clock on your mac is not synced to global time which is causing issues. At the present time you can manually remove this validation and make an embedded package for the authentication package or wait for our next release in which this validation will no longer cause issues.
     
  3. SpeedwayGameStudios

    SpeedwayGameStudios

    Joined:
    May 31, 2020
    Posts:
    4
    Thank you davialbuquerque. Whatever you said is correct, that issue is came because of system clock only. now it's fixed.