Search Unity

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:
    19
    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.