You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Closes#89.
apps/web/src/app/(app)/dashboard/security/page.tsx — drop the
useState+useEffect that synced twoFA from session.user.twoFactorEnabled.
Derived inline so it tracks the source of truth without an extra render.
Also drop the optimistic setTwoFA in the Switch's onCheckedChange
(the wizard target route is the real flip path).
packages/email/src/lib/client.ts — Resend client is now a lazy
singleton behind a Proxy. Importing @starter-saas/email no longer
instantiates Resend at module load, so RESEND_API_KEY can be absent
in environments that don't actually send mail; the first send call
throws a clear error if the key is missing.
0 commit comments