Next.js + D1 + Auth

Multi-user todo demo

Sign in to get your own private todo list backed by Cloudflare D1. Each account only sees its own tasks, and you can now attach passkeys for passwordless sign-in.

Email login

Simple email + password auth stored in D1-backed user/session tables.

Passkeys

Register a passkey after signing in, then return with passwordless WebAuthn sign-in.

Per-user isolation

Todo queries are scoped by user id so one account cannot read or modify another account's data.

Sign in with a passkey

Enter your email above, then use the passkey already registered on that account.