Closed aleDsz closed 2 years ago
I'll be testing this change with sleeping/shutting down my computer to check if the issue still happening
I'll be testing this change with sleeping/shutting down my computer to check if the issue still happening
Changing the system current time (or timezone) makes the system gets the wrong :os.system_time/1
and it sends wrong iat
and exp
claims to Google OAuth2 API and crashes the Goth.Server
.
Maybe if we try to get the system timezone and caches it, maybe can solve this issue. I'll try more possibilities until this PR be ready for review.
EDIT: Actually, maybe this can't be solve, since it uses the OS current time, if the current OS has wrong Date and Time settings, Erlang can't handle that.
Fixes #113.
This should stop making wrong calls when a dev computer is sleeping/off.
System.system_time/1
: