aboutsummaryrefslogtreecommitdiff
path: root/backends/cloud/box/boxtokenrefresher.cpp
diff options
context:
space:
mode:
authorAlexander Tkachev2019-07-15 21:06:00 +0700
committerMatan Bareket2019-07-30 14:51:41 -0400
commit0ee0e2d537e6217278e75ec59c216936896bf6cb (patch)
tree223ac53d5aefd91766e03d369cfeee32a65dc5e7 /backends/cloud/box/boxtokenrefresher.cpp
parent8333cce498a0c600ff42e58d644f9dad7a10068b (diff)
downloadscummvm-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.cpp4
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;
}