Clerk authentication that fits your Astro app.
Guides implementation of Clerk authentication in Astro middleware, server-rendered pages, API routes, and client-side components.
When to use it
Use when working on Clerk middleware, protected pages, island components, API authentication, or server rendering in Astro.
It changes how the agent implements Clerk authentication in an Astro project, using patterns matched to the rendering context.
What you provide
The instructions specify @clerk/astro v3+.
Requires Astro 4.15+.
The .env example supplies the client-exposed Clerk publishable key alongside CLERK_SECRET_KEY.
The .env example supplies the Clerk secret key alongside PUBLIC_CLERK_PUBLISHABLE_KEY.
No additional actions listed.