You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/quickstarts/astro.mdx
-13
Original file line number
Diff line number
Diff line change
@@ -105,19 +105,6 @@ description: Add authentication and user management to your Astro app with Clerk
105
105
```
106
106
1. By default, `clerkMiddleware()` will not protect any routes. All routes are public and you must opt-in to protection for routes. See the [`clerkMiddleware()` reference](/docs/references/astro/clerk-middleware) to learn how to require authentication for specific routes.
107
107
108
-
## Add TypeScript declarations
109
-
110
-
Update the `env.d.ts` file in your `src/` directory to add type definitions for the `locals` added by the middleware.
// The line directly below will only be present if you've ran your app
114
-
// Don't worry about adding it manually
115
-
/// <reference path="../.astro/types.d.ts" />
116
-
117
-
/// <reference types="astro/client" />
118
-
/// <reference types="@clerk/astro/env" />
119
-
```
120
-
121
108
## Add Clerk components to your app
122
109
123
110
You can control which content signed-in and signed-out users can see with Clerk's [prebuilt control components](/docs/components/overview#what-are-control-components). Create a header using the following components:
0 commit comments