From 7386d4339477c59c31bde583daa59a2d62e08998 Mon Sep 17 00:00:00 2001 From: Peter Phanouvong Date: Mon, 11 Nov 2024 14:06:20 +1100 Subject: [PATCH] chore: remove logs --- src/session/getAccessTokenWithRefresh.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/session/getAccessTokenWithRefresh.ts b/src/session/getAccessTokenWithRefresh.ts index 65631cb..6600ae5 100644 --- a/src/session/getAccessTokenWithRefresh.ts +++ b/src/session/getAccessTokenWithRefresh.ts @@ -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; }