NestJS Auth MVP With Password and Google OAuth Using brkpt-auth Library
A developer tutorial published on DEV Community demonstrates how to build a password and Google OAuth authentication flow in NestJS using an open-source library called brkpt-auth. The library installs its full source code directly into a project and uses a ports-and-adapters architecture to keep database and token logic separate from authentication logic. The walkthrough covers setting up NestJS v11 with Prisma 7.10.0, configuring a PostgreSQL database, and implementing credential and OAuth sign-in flows through a custom adapter. Validation is handled via class-validator, though the library itself is not tied to any specific validation library. The guide aims to reduce the boilerplate and glue code that typically accumulates in hand-rolled NestJS authentication setups.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in