feat: hashed api keys
parent
358368194a
commit
c4db335e97
|
@ -27,7 +27,7 @@ export const apiKeysRouter = createProtectedRouter()
|
||||||
}),
|
}),
|
||||||
async resolve({ ctx, input }) {
|
async resolve({ ctx, input }) {
|
||||||
const [hashedApiKey, apiKey] = generateUniqueAPIKey();
|
const [hashedApiKey, apiKey] = generateUniqueAPIKey();
|
||||||
console.log(hashedApiKey);
|
console.table("NOT hashedApiKey:", [hashedApiKey, apiKey]);
|
||||||
await ctx.prisma.apiKey
|
await ctx.prisma.apiKey
|
||||||
.create({
|
.create({
|
||||||
data: {
|
data: {
|
||||||
|
|
Loading…
Reference in New Issue