2 942 161 libros electrónicos en 111 idiomas
¿No le conviene? No hay problema. Puedes devolver los artículos hasta 30 días
No se equivocará con un vale de regalo. El destinatario puede elegir cualquier producto de nuestra oferta.
Hasta 30 días para devoluciones
Authentication seems simple-until sessions expire incorrectly, OAuth callbacks fail, permissions leak data, or one tenant gains access to another tenant's resources.
Better Auth for Secure TypeScript Applications gives you a practical, step-by-step path from basic sign-in to a production-ready identity system using Better Auth, TypeScript, Next.js, PostgreSQL, and Drizzle.
You do not need previous experience with Better Auth, OAuth, OpenID Connect, WebAuthn, enterprise SSO, or identity security. The book introduces each concept gradually, explains the reasoning behind important security decisions, and builds one connected application as your skills grow.
Instead of memorizing configuration, you will learn how authentication works, where security boundaries belong, what can go wrong, and how to test your assumptions. Mistakes are treated as part of the learning process: failed callbacks, rejected sessions, broken permission checks, and unsuccessful tests become opportunities to understand the system more deeply.
Key FeaturesHands-on, step-by-step development with Better Auth and Next.js
Practical TypeScript examples built around one evolving application
Secure sessions, cookies, account recovery, and social authentication
Passkeys, WebAuthn, two-factor authentication, and trusted devices
Organizations, teams, roles, permissions, and access control
Enterprise SSO with OIDC and SAML
SaaS multi-tenancy and tenant-isolation patterns
API authentication, API keys, abuse prevention, and security hardening
Testing, audit trails, observability, incident response, and production deployment
Practical exercises, production references, security checklists, and terminology guides
Build secure registration, login, verification, logout, and recovery flows; manage session expiration and revocation; integrate OAuth providers; implement passkeys and stronger authentication; design role-based access control; secure organization and tenant data; configure enterprise SSO; protect browser and machine APIs; test failure paths; monitor authentication events; and prepare your identity system for production.
Who This Book Is ForThis book is for TypeScript and web developers who understand basic web development but are new to authentication architecture. It is especially useful for self-learners, junior-to-intermediate developers, SaaS builders, and developers who want a practical introduction to secure authentication without starting from advanced identity-security theory.
Table of ContentsBuilding a Secure Authentication Foundation with Better Auth
Accounts, Sessions, Cookies, and Recovery
OAuth, OpenID Connect, and Social Authentication
Passkeys, WebAuthn, and Stronger Authentication
Organizations, Teams, Roles, and Permissions
Enterprise SSO and Identity Provider Integration
Multi-Tenancy and Tenant Isolation
API Authentication and Application Security
Testing, Observability, and Incident Readiness
Deploying and Operating Better Auth in Production
Start building authentication with confidence and turn a collection of login features into a secure, maintainable identity system you understand from foundation to production.
¡Hola! Soy Libroamiko, tu asesor de libros.
¿Cómo puedo ayudarte?