Use case
Add auth and transactional email to Next.js
Install the AscendKit JS SDK, set your public key, and you get hosted auth (credentials, magic link, OAuth) plus transactional email from the same project. One user record covers both, so a signup can trigger a welcome email without wiring a webhook between two vendors.
How it works
- 1. Install the SDKAdd @ascendkit/nextjs and set your project public key via the X-AscendKit-Public-Key header. The CLI or MCP server can scaffold this for you.
- 2. Mount authUse the server and client auth hooks for credentials, magic link, and OAuth (Google, GitHub, LinkedIn). Users are created as usr_ records automatically.
- 3. Send emailAuthor a versioned email template in the portal, then send it from the SDK. AWS SES delivery, DKIM/SPF, and a verified domain are handled for you.
FAQ
Do I need Resend or another email provider alongside auth?
No. Auth and transactional email live in the same AscendKit project, so a verified sign-up can send a welcome email without a second vendor or a webhook bridge between them.
Does this work with the Next.js App Router?
Yes. The JS SDK ships server and client helpers that work with the App Router, including route handlers for the auth flow.
Start with one API key
Auth, email, surveys, and journeys share one user record, so you ship this without stitching vendors together.
Start free