Shiplog

Auth

BetterOAuth Backend

March 5, 2026

BetterOAuth Backend handles the server side of OAuth login: authentication routes, protected routes, and schema-managed migrations via Drizzle Kit. It's built in TypeScript, ships with a Dockerfile, and pairs with the BetterOAuth UI frontend.

Why: Wanted to actually understand the different types of login flows and how OAuth works under the hood, rather than just dropping a library in and trusting it.

Stack: TypeScript, better-auth, Drizzle ORM, Docker