From bb6a41900cac1053a57e9367d49dd1f5f6985e0a Mon Sep 17 00:00:00 2001 From: David Nguyen Date: Fri, 27 Jun 2025 19:29:01 +1000 Subject: [PATCH] fix: log api token ID --- packages/lib/server-only/public-api/get-api-token-by-token.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/lib/server-only/public-api/get-api-token-by-token.ts b/packages/lib/server-only/public-api/get-api-token-by-token.ts index 925230bfd..6734e9a76 100644 --- a/packages/lib/server-only/public-api/get-api-token-by-token.ts +++ b/packages/lib/server-only/public-api/get-api-token-by-token.ts @@ -41,6 +41,10 @@ export const getApiTokenByToken = async ({ token }: { token: string }) => { throw new Error('Invalid token'); } + console.log({ + tokenId: apiToken.id, + }); + if (apiToken.expires && apiToken.expires < new Date()) { throw new Error('Expired token'); }