Request private content
Open /private. Cloudflare middleware checks the Clerk session before it looks up the static page.
Cloudflare Pages × Clerk
A small demonstration of passwordless email-code sign-in for a fully statically generated Astro site.
How it works
Open /private. Cloudflare middleware checks the Clerk session before it looks up the static page.
If no valid session exists, the login page uses headless ClerkJS to send and verify a one-time email code.
Clerk activates the session and returns you to the original URL. The edge check succeeds and the private page is served.
Ready to test it?
You will be returned to the private page after verifying your code.