Yatta JS Bundles Sign-Up, Sessions, Passkeys and 2FA Into One Bun Backend
Yatta JS is a backend-as-a-server for Bun that bundles a database, auth, mail, storage, realtime, jobs and observability into a single process. Scaffolding a new project with its CLI comes with authentication already wired to the database. Developers set up auth with createAuth, which requires a persistent store in production and a secret supplied through an environment variable. Passwords are hashed with Argon2id and sessions are encrypted at rest using AES-256-GCM by default. The walkthrough also covers sign-up, sign-in, session resolution and protecting routes.
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