Closed rajrajhans closed 8 months ago
Thank you for the PR. We had a similar PR before, https://github.com/peburrows/goth/pull/158, and I didn't realise there were leftovers. Could you while at it change all the other System.system_time occurrences when it makes sense? Also could you use System.os_time
instead? Thank you!
hey @wojtekmach, I have updated the PR. Thanks for the quick response!
Thanks!
currently
System.system_time
is used to get current time, which is used for checking whether the token is expired.System.system_time
is affected by time warpnote that the lag between
:os.system_time
andSystem.system_time
was a lot in my casedue to this,
Goth.fetch
returns expired tokens which are no longer valid. the only solution when this happens is to reboot the system. This PR changes it to use:os.system_time
.