Skip to content

Commit

Permalink
astro update
Browse files Browse the repository at this point in the history
  • Loading branch information
alexisintech committed Dec 19, 2024
1 parent 6ec92b4 commit 4f09ca6
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions docs/references/astro/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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).

0 comments on commit 4f09ca6

Please sign in to comment.