Lightlines
By clerk

clerk-astro-patterns

clerk13.5k installs

Clerk authentication that fits your Astro app.

What it does

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.

How to use it

It changes how the agent implements Clerk authentication in an Astro project, using patterns matched to the rendering context.

What you provide

  • An existing project

Uses

Latest review

What you need · 4

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.


Access · 0

No additional actions listed.