Skip to content

Commit

Permalink
oauth: clean-up cache logs (#6426)
Browse files Browse the repository at this point in the history
  • Loading branch information
spolu authored Jul 22, 2024
1 parent cdf5ee6 commit ffdeebd
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions types/src/oauth/client/access_token.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,23 +40,8 @@ export async function getOAuthConnectionAccessToken({
const cached = CACHE.get(connectionId);

if (cached && cached.local_expiry > Date.now()) {
logger.info(
{
provider,
connectionId,
},
"Access token cache hit"
);
return new Ok(cached);
}
logger.info(
{
cached: !!cached,
provider,
connectionId,
},
"Access token cache miss"
);

const res = await new OAuthAPI(config, logger).getAccessToken({
provider,
Expand Down

0 comments on commit ffdeebd

Please sign in to comment.