1f2a73cb44
reinitAuth() can throw if BETTER_AUTH_SECRET is missing, causing an unhandled rejection that returns an HTML error page instead of JSON. Wrap both PUT and DELETE handlers in try/catch to return a proper JSON error response. Co-Authored-By: Paperclip <noreply@paperclip.ing>