Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add next steps to astro quickstart #1256

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 24 additions & 5 deletions docs/quickstarts/astro.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ description: Add authentication and user management to your Astro app with Clerk
},
]}
exampleRepo={[
{
title: "Astro Quickstart Repo",
link: "https://github.com/clerk/clerk-astro-quickstart"
}
{
title: "Astro Quickstart Repo",
link: "https://github.com/clerk/clerk-astro-quickstart"
}
]}
>

Expand Down Expand Up @@ -187,7 +187,26 @@ import SiteLayout from "../layouts/SiteLayout.astro"
<div className="container mx-auto my-4">
<div className="grid grid-cols-1 gap-6 md:grid-cols-2">

<Cards title="Protect routes using Clerk Middleware" description="Learn how to protect specific routes from unauthenticated users." link="/docs/references/astro/clerk-middleware" cta="Learn More" />
<Cards
title="Protect routes using Clerk Middleware"
description="Learn how to protect specific routes from unauthenticated users."
link="/docs/references/astro/clerk-middleware"
cta="Learn More"
/>

<Cards
title="Read session and user data"
description="Learn how to use Clerk's stores and helpers to access the active session and user data in your Astro application."
link="/docs/references/astro/read-session-data"
cta="Learn More"
/>

<Cards
title="Clerk + Astro Quickstart Repo"
description="The official companion repo for Clerk's Astro Quickstart."
link="https://github.com/clerk/clerk-astro-quickstart"
cta="Learn More"
/>

</div>
</div>
1 change: 1 addition & 0 deletions docs/quickstarts/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ description: Check out our Clerk getting started guides and tutorials.

- [Astro](/docs/quickstarts/astro)
- Easily add secure and SSR-friendly authentication to your Astro application with Clerk.
- {<svg viewBox="0 0 32 32" style={{}}><path strokeWidth="0" d="M7.785 15.628c-.723-.66-.934-2.05-.633-3.055.523.634 1.246.835 1.995.948 1.157.175 2.294.11 3.368-.419.123-.06.237-.14.371-.222.101.292.127.587.092.888-.086.732-.45 1.298-1.03 1.726-.231.172-.476.325-.716.487-.735.497-.934 1.08-.658 1.927l.028.092a1.934 1.934 0 0 1-.859-.734 2.064 2.064 0 0 1-.331-1.122c-.003-.197-.003-.397-.03-.592-.064-.475-.287-.688-.708-.7a.829.829 0 0 0-.863.674c-.007.032-.017.064-.027.101h.001ZM3.66 12.405s2.14-1.042 4.287-1.042l1.618-5.009c.06-.242.238-.406.437-.406.2 0 .377.164.438.406l1.618 5.009c2.542 0 4.287 1.043 4.287 1.043L12.702 2.48c-.104-.292-.28-.481-.518-.481H7.821c-.237 0-.406.189-.518.481L3.66 12.406Z"/></svg>}

</Cards>

Expand Down
4 changes: 2 additions & 2 deletions docs/references/astro/read-session-data.mdx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
title: Read session and user data in your Next.js app with Clerk
title: Read session and user data in your Astro app with Clerk
description: Learn how to use Clerk's hooks and helpers to access the active session and user data in your Astro application.
---

# Read session and user data
# Read session and user data in your Astro app with Clerk

Clerk provides helpers that you can use to access the active session and user data in your Astro application.

Expand Down