diff --git a/docs/references/astro/overview.mdx b/docs/references/astro/overview.mdx index 625f4e65bc..5c039c76a3 100644 --- a/docs/references/astro/overview.mdx +++ b/docs/references/astro/overview.mdx @@ -25,19 +25,19 @@ The Astro SDK provides [stores](https://github.com/nanostores/nanostores) that g ## Server-side helpers -The following references show how to integrate Clerk features into applications using Astro server functions and API routes. +The following references show how to integrate Clerk features into your Astro app on the server-side. -### `Auth` object +### Locals -`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](/docs/references/nextjs/auth-object){{ target: '_blank' }}. +The Astro SDK provides access to Clerk's authentication data through Astro's [`locals`](https://docs.astro.build/en/guides/middleware/#storing-data-in-contextlocals) object. The following references show how to access authentication data in server-side code: -### `clerkMiddleware()` +- [Auth](/docs/references/astro/locals#auth) +- [CurrentUser](/docs/references/astro/locals#currentuser) -The `clerkMiddleware()` helper integrates Clerk authentication and authorization into your Astro application through middleware. You can learn more [here](/docs/references/astro/clerk-middleware). +#### `Auth` object -## Locals +`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](/docs/references/nextjs/auth-object){{ target: '_blank' }}. -The Astro SDK provides access to Clerk's authentication data through Astro's [`locals`](https://docs.astro.build/en/guides/middleware/#storing-data-in-contextlocals) object. The following references show how to access authentication data in server-side code: +### `clerkMiddleware()` -- [Auth](/docs/references/astro/locals#auth) -- [CurrentUser](/docs/references/astro/locals#currentuser) +The `clerkMiddleware()` helper integrates Clerk authentication and authorization into your Astro application through middleware. You can learn more [here](/docs/references/astro/clerk-middleware).