Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f89ba9f

Browse files
committed
Implementation of token re fetch logic
1 parent 7c5cd6e commit f89ba9f

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/main/java/com/twilio/TwilioBearerTokenAuth.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ public static BearerTokenTwilioRestClient getRestClient() {
4444
}
4545
}
4646
}
47-
//TwilioBearerTokenAuth.restClient.tokenManager = this.tokenManager;
4847
return TwilioBearerTokenAuth.restClient;
4948
}
5049
/**
@@ -64,6 +63,7 @@ public static ExecutorService getExecutorService() {
6463
}
6564

6665
private static BearerTokenTwilioRestClient buildOAuthRestClient() {
66+
6767
BearerTokenTwilioRestClient.Builder builder = new BearerTokenTwilioRestClient.Builder(accessToken);
6868

6969
if (userAgentExtensions != null) {

src/main/java/com/twilio/http/bearertoken/BearerTokenTwilioRestClient.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

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

4745
private BearerTokenTwilioRestClient(BearerTokenTwilioRestClient.Builder b) {

0 commit comments

Comments
 (0)