forked from Archives/Athou_commafeed
attempt to fix invalid_grant error
This commit is contained in:
@@ -81,6 +81,9 @@ public class GoogleImportCallbackPage extends WebPage {
|
|||||||
tokenRequest.setGrantType("authorization_code");
|
tokenRequest.setGrantType("authorization_code");
|
||||||
|
|
||||||
try {
|
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();
|
TokenResponse tokenResponse = tokenRequest.execute();
|
||||||
String accessToken = tokenResponse.getAccessToken();
|
String accessToken = tokenResponse.getAccessToken();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user