Compare commits

...

1 Commits

Author SHA1 Message Date
bb6a41900c fix: log api token ID 2025-06-27 19:29:01 +10:00

View File

@ -41,6 +41,10 @@ export const getApiTokenByToken = async ({ token }: { token: string }) => {
throw new Error('Invalid token'); throw new Error('Invalid token');
} }
console.log({
tokenId: apiToken.id,
});
if (apiToken.expires && apiToken.expires < new Date()) { if (apiToken.expires && apiToken.expires < new Date()) {
throw new Error('Expired token'); throw new Error('Expired token');
} }