documenso/packages/lib/server-only/2fa
Lucas Smith 9f680c7a61
perf: set global prisma transaction timeouts and reduce transaction scope (#2607)
Configure default transaction options (5s maxWait, 10s timeout) on the
PrismaClient instead of per-transaction overrides. Move side effects
like email sending, webhook triggers, and job dispatches out of
$transaction blocks to avoid holding database connections open during
network I/O.

Also extracts the direct template email into a background job and fixes
a bug where prisma was used instead of tx inside a transaction.
2026-03-13 14:51:53 +11:00
..
email perf: set global prisma transaction timeouts and reduce transaction scope (#2607) 2026-03-13 14:51:53 +11:00
disable-2fa.ts feat: migrate nextjs to rr7 2025-02-13 14:10:38 +11:00
enable-2fa.ts feat: migrate nextjs to rr7 2025-02-13 14:10:38 +11:00
get-backup-code.ts feat: migrate nextjs to rr7 2025-02-13 14:10:38 +11:00
is-2fa-availble.ts feat: migrate nextjs to rr7 2025-02-13 14:10:38 +11:00
setup-2fa.ts feat: migrate nextjs to rr7 2025-02-13 14:10:38 +11:00
validate-2fa.ts feat: migrate nextjs to rr7 2025-02-13 14:10:38 +11:00
verify-2fa-token.ts feat: migrate nextjs to rr7 2025-02-13 14:10:38 +11:00
verify-backup-code.ts feat: migrate nextjs to rr7 2025-02-13 14:10:38 +11:00
verify-password.ts feat: password reauthentication for documents and recipients (#1827) 2025-06-07 00:27:19 +10:00
view-backup-codes.ts feat: migrate nextjs to rr7 2025-02-13 14:10:38 +11:00