mihailnica10 stops rolling his own login security
The fork's homemade sign-in system, which shipped with a baked-in fallback password key, is gone, replaced by a maintained open-source library.
The old setup was written in a hurry during a move to Cloudflare's hosting platform, and it had flaws you never want in legal software: a secret key with a hardcoded fallback and password protection that cut corners. This change rips all of that out and brings in better-auth, an open-source authentication toolkit, configured for email-and-password sign-in with week-long sessions.
The genuinely tricky part is that the app's front end and its data service live at two different web addresses, so the team had to set up browser cookies that survive crossing that boundary. Two caveats for anyone borrowing the pattern: the configuration is currently tied to the author's own test domains, and the cross-site cookie technique behaves differently in Firefox and Safari than in Chrome, so it needs testing before production use.
Spotted something wrong? Or know the PR text has fresher detail than the writeup above?