Topic on Extension talk:GoogleLogin

Cannot handle token prior to

2
CharlesCivi (talkcontribs)

This morning I started getting an error:

Oops, there was an error. Please go back and try again. Message: Cannot handle token prior to 2024-03-18T14:36:57+0000

According to everything I it's because the time synchronization on my server is off. I checked it against the google timesynch server and it's right on.

According to Stack Overlfow I can set some sort of leeway parameter that will allow some leeway in the time synchronization. Is there somewhere I can do that in this extension?

CharlesCivi (talkcontribs)

I found it in the file:

var/www/mediawiki/extensions/GoogleLogin/vendor/google/apiclient/src/AccessToken/Verify.php

modified:

$jwtClass::$leeway = 1;

to this:

$jwtClass::$leeway = 10;

Reply to "Cannot handle token prior to"