mirror of
https://github.com/documenso/documenso.git
synced 2026-07-13 06:25:01 +10:00
fix: log api token ID
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user