EmbedAuth Blog

Authentication, explained without the hand-waving.

Deep, opinionated writing on OAuth, JWT, passwordless flows, session design, and the architectural choices behind production auth systems.

All articles

Authentication

Session Management Best Practices: Cookies, Tokens, and Rotation

Stateful sessions vs. stateless tokens, cookie security flags, refresh token rotation, idle and absolute timeouts, and how to revoke access when it matters.

Jun 10, 2026 4 min

Authentication

What Is Embedded Authentication?

Embedded authentication keeps users in your product when they sign in, instead of bouncing them to a third-party domain. Here's how it works, what it changes, and the tradeoffs you sign up for.

May 12, 2026 7 min

Multi-Tenant Auth

Designing Multi-Tenant Authentication for B2B SaaS

How to model organizations, users, roles, and isolation when one user can belong to many tenants — and the architectural decisions that are painful to reverse later.

Jun 2, 2026 4 min

Security

Common Authentication Vulnerabilities and How to Prevent Them

Credential stuffing, broken session handling, JWT confusion attacks, account enumeration, and the other ways login systems get broken in production — plus the concrete fixes for each.

May 28, 2026 4 min

OAuth & OIDC

How OAuth 2.0 Actually Works

OAuth 2.0 explained without the marketing copy — what the redirects are really doing, where the tokens come from, what PKCE protects against, and the parts the spec doesn't make obvious.

May 10, 2026 9 min

Passwordless

Passkeys and WebAuthn Explained: Phishing-Resistant Login

What passkeys actually are, how WebAuthn works under the hood, why they resist phishing where passwords and OTPs fail, and how to adopt them without locking users out.

Jun 6, 2026 4 min

React Auth

Why Iframe Authentication Is Difficult

Iframe-based auth looks like a clean way to embed a sign-in form. The browser thinks otherwise. Here's what actually breaks — cookies, postMessage, ITP, focus, autofill — and the patterns that survive contact with real users.

May 4, 2026 8 min

JWT

JWT Explained for Developers

A JWT is three base64-encoded strings separated by dots. What's in them, how signatures actually work, why "stateless auth" is a half-truth, and the mistakes that keep showing up in production code.

May 8, 2026 7 min

Security

Protecting Auth Endpoints: Rate Limiting and Brute-Force Defense

How to design rate limiting for login, OTP, and reset endpoints — algorithms, what to key on, lockout strategies, and avoiding the traps that let attackers through or lock out real users.

Jun 12, 2026 4 min