feat: hashed api keys

pull/2277/head
Agusti Fernandez Pardo 2022-04-08 01:54:58 +02:00
parent 358368194a
commit c4db335e97
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ export const apiKeysRouter = createProtectedRouter()
}),
async resolve({ ctx, input }) {
const [hashedApiKey, apiKey] = generateUniqueAPIKey();
console.log(hashedApiKey);
console.table("NOT hashedApiKey:", [hashedApiKey, apiKey]);
await ctx.prisma.apiKey
.create({
data: {