Skip to content

Commit 0565ec4

Browse files
committed
Rename token_expired LogoutReason to refresh_token_expired.
1 parent 8ca9f43 commit 0565ec4

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

libs/SalesforceSDK/src/com/salesforce/androidsdk/auth/OAuth2.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ public class OAuth2 {
203203

204204
public enum LogoutReason {
205205
CORRUPT_STATE, // "Corrupted client state"
206-
TOKEN_EXPIRED, // "Refresh token expired"
206+
REFRESH_TOKEN_EXPIRED, // "Refresh token expired"
207207
SSDK_LOGOUT_POLICY, // "SSDK initiated logout for policy violation"
208208
TIMEOUT, // "Timeout while waiting for server response"
209209
UNEXPECTED, // "Unexpected error or crash"

libs/SalesforceSDK/src/com/salesforce/androidsdk/rest/ClientManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ public String getNewAuthToken() {
463463
// authenticated endpoint. However, there is no harm in attempting and the debug logs
464464
// produced may help developers better understand the state of their app.
465465
SalesforceSDKManager.getInstance()
466-
.logout(null, null, false, OAuth2.LogoutReason.TOKEN_EXPIRED);
466+
.logout(null, null, false, OAuth2.LogoutReason.REFRESH_TOKEN_EXPIRED);
467467
}
468468

469469
// Broadcasts an intent that the access token has been revoked.

0 commit comments

Comments
 (0)