Skip to content

Commit

Permalink
No need to update credentials with tokens in interceptor.
Browse files Browse the repository at this point in the history
  • Loading branch information
dkocher committed Aug 24, 2023
1 parent 722bcdd commit 6851d8e
Showing 1 changed file with 0 additions and 2 deletions.
Expand Up @@ -19,7 +19,6 @@
import ch.cyberduck.core.HostPasswordStore;
import ch.cyberduck.core.HostUrlProvider;
import ch.cyberduck.core.LoginCallback;
import ch.cyberduck.core.LoginOptions;
import ch.cyberduck.core.OAuthTokens;
import ch.cyberduck.core.PasswordStoreFactory;
import ch.cyberduck.core.Scheme;
Expand Down Expand Up @@ -93,7 +92,6 @@ public OAuthTokens refresh(final OAuthTokens previous) throws BackgroundExceptio
* @return Same tokens saved
*/
public OAuthTokens save(final OAuthTokens tokens) throws LocalAccessDeniedException {
host.getCredentials().withOauth(tokens).withSaved(new LoginOptions().keychain);
if(log.isDebugEnabled()) {
log.debug(String.format("Save new tokens %s for %s", tokens, host));
}
Expand Down

0 comments on commit 6851d8e

Please sign in to comment.