mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
attempt to fix invalid_grant error
This commit is contained in:
@@ -81,6 +81,9 @@ public class GoogleImportCallbackPage extends WebPage {
|
||||
tokenRequest.setGrantType("authorization_code");
|
||||
|
||||
try {
|
||||
// potential fix for invalid_grant error, happens if local
|
||||
// system time is ahead of google servers time
|
||||
Thread.sleep(1000);
|
||||
TokenResponse tokenResponse = tokenRequest.execute();
|
||||
String accessToken = tokenResponse.getAccessToken();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user