Skip to content

Commit 46af874

Browse files
committed
Remove debug logs and update token expiration handling
Removed unnecessary console.log statements from OAuth.helper.ts for cleaner output. Updated AccessTokenManager to store expiration timestamp as a string if available, improving consistency in token expiration handling.
1 parent 045fdf4 commit 46af874

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

packages/core/src/Components/APICall/AccessTokenManager.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ class AccessTokenManager {
147147
// Update internal tokensData reference
148148
this.tokensData = updatedData;
149149
this.primaryToken = newAccessToken;
150+
this.expires_in = expirationTimestamp ? expirationTimestamp.toString() : expirationTimestamp;
150151

151152
return newAccessToken;
152153
} catch (error) {

packages/core/src/Components/APICall/OAuth.helper.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -351,9 +351,7 @@ const getKeyIdsFromTemplateVars = (str: string): string[] => {
351351
};
352352

353353
async function getClientCredentialToken(tokensData, logger, keyId, oauthTokens, config, agent, isNewStructure = false) {
354-
console.log('tokensData', tokensData);
355-
console.log('keyId', keyId);
356-
console.log('oauthTokens', oauthTokens);
354+
357355

358356
const logAndThrowError = (message) => {
359357
logger.debug(message);

0 commit comments

Comments
 (0)