fix: prevent sign-out crash and surface real email-send failures #58
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix/logout-crash-and-email-delivery"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #57 and #56.
#57 - Sign-out crash
session/jwtcallbacks no longer returnnull(NextAuth v5 clientuseSession()throws on anullsession; this fired during sign-out for deactivated/refreshed sessions).UserMenu/Headersign-out now closes the Manage Users overlay + popover before callingsignOut(), and catches sign-out errors instead of leaving an unhandled rejection.app/error.tsxas a defensive error boundary.#56 - Forgot password / login emails
lib/email.tsthrows a clear, actionable error when neither SMTP nor Resend is configured, instead of a cryptic SDK error.DEPLOYMENT_CHECKLIST.md(they were missing entirely, which is the main reason no confirmation/reset emails were ever sent in deployed environments).Companion ansible-side change (separate repo) wires up
DATABASE_URL_AUTH,NEXTAUTH_SECRET/URL, andSMTP_*/RESEND_*env vars for the punimTag dev/qa/prod deploy targets, which were previously unset entirely.