diff options
author | Alexander Tkachev | 2019-07-15 21:06:00 +0700 |
---|---|---|
committer | Matan Bareket | 2019-07-30 14:51:41 -0400 |
commit | 0ee0e2d537e6217278e75ec59c216936896bf6cb (patch) | |
tree | 223ac53d5aefd91766e03d369cfeee32a65dc5e7 /backends/cloud/box/boxtokenrefresher.cpp | |
parent | 8333cce498a0c600ff42e58d644f9dad7a10068b (diff) | |
download | scummvm-rg350-0ee0e2d537e6217278e75ec59c216936896bf6cb.tar.gz scummvm-rg350-0ee0e2d537e6217278e75ec59c216936896bf6cb.tar.bz2 scummvm-rg350-0ee0e2d537e6217278e75ec59c216936896bf6cb.zip |
CLOUD: Update GoogleDriveStorage and BoxStorage to auth via cloud.scummvm.org
Diffstat (limited to 'backends/cloud/box/boxtokenrefresher.cpp')
-rw-r--r-- | backends/cloud/box/boxtokenrefresher.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/cloud/box/boxtokenrefresher.cpp b/backends/cloud/box/boxtokenrefresher.cpp index 5f7ad1d611..19cdd92667 100644 --- a/backends/cloud/box/boxtokenrefresher.cpp +++ b/backends/cloud/box/boxtokenrefresher.cpp @@ -99,7 +99,7 @@ void BoxTokenRefresher::finishJson(Common::JSONValue *json) { pause(); delete json; - _parentStorage->getAccessToken(new Common::Callback<BoxTokenRefresher, Storage::BoolResponse>(this, &BoxTokenRefresher::tokenRefreshed)); + _parentStorage->refreshAccessToken(new Common::Callback<BoxTokenRefresher, Storage::BoolResponse>(this, &BoxTokenRefresher::tokenRefreshed)); return; } } @@ -111,7 +111,7 @@ void BoxTokenRefresher::finishJson(Common::JSONValue *json) { void BoxTokenRefresher::finishError(Networking::ErrorResponse error) { if (error.httpResponseCode == 401) { // invalid_token pause(); - _parentStorage->getAccessToken(new Common::Callback<BoxTokenRefresher, Storage::BoolResponse>(this, &BoxTokenRefresher::tokenRefreshed)); + _parentStorage->refreshAccessToken(new Common::Callback<BoxTokenRefresher, Storage::BoolResponse>(this, &BoxTokenRefresher::tokenRefreshed)); return; } |