Skip to content

Commit

Permalink
feat: make tryRestoreUsingAccessTokenCache in Box API connection pu…
Browse files Browse the repository at this point in the history
…blic (#1272)

Co-authored-by: David Mondejar <[email protected]>
  • Loading branch information
congminh1254 and davigotxi committed Nov 20, 2024
1 parent 5eb4c93 commit 50f5a61
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,10 @@ private String getAccessTokenCacheKey() {
this.entityType.toString(), this.entityID);
}

private void tryRestoreUsingAccessTokenCache() {
/**
* Tries to restore the connection using the access token cache.
*/
public void tryRestoreUsingAccessTokenCache() {
if (this.accessTokenCache == null) {
//no cache specified so force authentication
this.authenticate();
Expand Down

0 comments on commit 50f5a61

Please sign in to comment.