feat: show newly created token

This commit is contained in:
Catalin Pit
2023-11-28 15:49:46 +02:00
parent 6a5fc7a5fb
commit e1732de81d
3 changed files with 78 additions and 45 deletions

View File

@ -9,5 +9,12 @@ export const getUserTokens = async ({ userId }: GetUserTokensOptions) => {
where: {
userId,
},
select: {
id: true,
name: true,
algorithm: true,
createdAt: true,
expires: true,
},
});
};