Skip to content

Commit

Permalink
add astro locals
Browse files Browse the repository at this point in the history
  • Loading branch information
victoriaxyz committed Dec 19, 2024
1 parent 24c4c82 commit 6ec92b4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/references/astro/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,10 @@ The following references show how to integrate Clerk features into applications
### `clerkMiddleware()`

The `clerkMiddleware()` helper integrates Clerk authentication and authorization into your Astro application through middleware. You can learn more [here](/docs/references/astro/clerk-middleware).

## Locals

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:

- [Auth](/docs/references/astro/locals#auth)
- [CurrentUser](/docs/references/astro/locals#currentuser)

0 comments on commit 6ec92b4

Please sign in to comment.