From a077530ef8a14e69cadd7af980cc1d59510878e1 Mon Sep 17 00:00:00 2001 From: David Kocher Date: Fri, 22 Sep 2023 15:58:24 +0200 Subject: [PATCH] Mark credentials to be saved when token is expired. --- core/src/main/java/ch/cyberduck/core/KeychainLoginService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/ch/cyberduck/core/KeychainLoginService.java b/core/src/main/java/ch/cyberduck/core/KeychainLoginService.java index 60e8deffce7..0d0f7856dd6 100644 --- a/core/src/main/java/ch/cyberduck/core/KeychainLoginService.java +++ b/core/src/main/java/ch/cyberduck/core/KeychainLoginService.java @@ -101,7 +101,7 @@ public void validate(final Host bookmark, final LoginCallback prompt, final Logi log.info(String.format("Fetched OAuth token from keychain for %s", bookmark)); } // No need to reinsert found token to the keychain. - credentials.setSaved(false); + credentials.setSaved(tokens.isExpired()); credentials.setOauth(tokens); } }