Developer Documentation

Everything you need to integrate EmbedAuth

Step-by-step guides for every framework and language — from your first embed to production-grade token verification. Start with the quick walkthrough or jump straight to your stack.

Getting Started

Understand the architecture and get your first embed running.

Frontend Integration

Drop the embed into React, Next.js, Vue, and other frameworks.

Backend & Token Verification

Verify RS256 JWTs on your server in any language.

Configuration

CSP, postMessage events, themes, and embed parameters.

Configuring Content Security Policy

Allow the EmbedAuth iframe under a strict CSP — the exact frame-src directive, the email-redirect origin most people miss, and per-framework header examples.

1 min read

PostMessage Events Reference

Every event the EmbedAuth iframe emits over window.postMessage — types, payloads, when they fire, the origin check you must perform on all of them, and how to refresh tokens.

3 min read

Email delivery and DNS

Which emails EmbedAuth sends on your behalf and why they need no setup from you — plus the MX, SPF, DKIM and DMARC records to publish when you want your own domain to send and receive mail.

6 min read

Account Widget

Let your users manage their own accounts — name, password, signed-in devices and account deletion — with a second embeddable widget you design exactly like the sign-in form.

5 min read

Deleting and Exporting Users

Delete a user's EmbedAuth sign-in from your own server with your app's client secret, and, in GDPR mode, fetch a copy of everything EmbedAuth holds about them.

3 min read

GDPR Mode (EU and UK)

Turn on EU GDPR or UK GDPR mode for an app to get permanent deletion, fixed retention, data exports, self-hosted fonts, a Data Processing Agreement and, for the UK, a privacy complaints channel.

2 min read

Two-Factor Sign-In

Ask your users for a code from an authenticator app after their password, magic link, email code or Google and Discord sign-in — optional for those who want it, or required for everyone.

3 min read

Verified Domains

Prove your app owns an email domain with a DNS TXT record, then limit sign-ups to addresses at it and let single sign-on sign its users in.

2 min read

SAML Single Sign-On

Connect your organization's identity provider — Okta, Microsoft Entra ID, Google Workspace, OneLogin, ADFS, Keycloak — over SAML 2.0, or let each of your customers connect their own, add an SSO button to the widget, and optionally require it for verified domains.

6 min read

Troubleshooting

Fix cookie, CSP, and OAuth problems fast.

Ready to integrate?

Create a free account and have your first embed running in minutes.