Skip to content

Commit

Permalink
Implementation of token re fetch logic
Browse files Browse the repository at this point in the history
  • Loading branch information
AsabuHere committed Jun 13, 2024
1 parent 7c5cd6e commit f89ba9f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/twilio/TwilioBearerTokenAuth.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ public static BearerTokenTwilioRestClient getRestClient() {
}
}
}
//TwilioBearerTokenAuth.restClient.tokenManager = this.tokenManager;
return TwilioBearerTokenAuth.restClient;
}
/**
Expand All @@ -64,6 +63,7 @@ public static ExecutorService getExecutorService() {
}

private static BearerTokenTwilioRestClient buildOAuthRestClient() {

BearerTokenTwilioRestClient.Builder builder = new BearerTokenTwilioRestClient.Builder(accessToken);

if (userAgentExtensions != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import com.auth0.jwt.JWT;
import com.twilio.http.bearertoken.TokenManager;
import jdk.internal.net.http.common.Pair;
import com.auth0.jwt.interfaces.DecodedJWT;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
Expand Down Expand Up @@ -41,7 +40,6 @@ public class BearerTokenTwilioRestClient {
@Getter
private final List<String> userAgentExtensions;
public static TokenManager tokenManager;
// = new TokenManagerImpl("client_credentials", "OQ8576fd024eb2f94c329dd5d77254fa35", "1OkIMnXTaVNqVpLmKyYI1Nyi1AVFu4OMTej0MYHKdfPFZbVmGGbBZFhf58q5Vi1X");
private static final Logger logger = LoggerFactory.getLogger(BearerTokenTwilioRestClient.class);

private BearerTokenTwilioRestClient(BearerTokenTwilioRestClient.Builder b) {
Expand Down

0 comments on commit f89ba9f

Please sign in to comment.