Skip to content

Commit

Permalink
chore: remove logs
Browse files Browse the repository at this point in the history
  • Loading branch information
peterphanouvong committed Nov 11, 2024
1 parent 0561436 commit 7386d43
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/session/getAccessTokenWithRefresh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,10 @@ export const getAccessTokenWithRefresh = async (
(decodedToken.exp * 1000 < Date.now() && refreshToken) ||
(forceRefresh && refreshToken)
) {
console.log('refreshing token');
const {access_token} = await kindeClient.refreshTokens(
await sessionManager(req, res)
);

console.log(
'new access token expires in',
jwtDecoder(access_token).exp * 1000 - Date.now()
);

return jwtDecoder(access_token) as KindeAccessToken;
}

Expand Down

0 comments on commit 7386d43

Please sign in to comment.