UNPKG

create-auth-js-boiler

Version:
16 lines (13 loc) 323 B
import { prisma } from "./prisma"; export const getTwoFactorConfirmationByUserId = async (userId: string) => { try { const twoFactorConfirmation = await prisma.twoFactorConfirmation.findUnique( { where: { userId }, }, ); return twoFactorConfirmation; } catch { return null; } };