Astro and Clerk
Clerk makes it simple to add authentication to your Astro application. This documentation covers the capabilities and methods available from Clerk's Astro SDK.
Guides
Client-side helpers
Clerk Astro provides a set of useful stores that give you access to the Clerk
object, and helper methods for signing in and signing up.
$authStore
$clerkStore
$userStore
$signInStore
$signUpStore
$sessionStore
$sessionListStore
$organizationStore
General Reference
Auth
object
Astro.locals.auth()
returns an Auth
object. This JavaScript object contains important information like session data, your user's ID, as well as their active organization ID. Learn more about the Auth
object here.
clerkMiddleware()
The clerkMiddleware()
helper integrates Clerk authentication and authorization into your Astro application through middleware. You can learn more here.
Feedback
Last updated on