6 min read
Anonymous-first auth with better-auth + Postgres
How I killed the signup wall: mint a real (anonymous) user the moment someone contributes, then merge their data into a real account on login, with a Postgres transaction so nothing gets orphaned.
nextjstypescriptauthenticationwebdev
