Skip to content

domitriusclark/clerk-astro-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Community Clerk + Astro (JS) starter

What's inside?

Get started managing your users with Clerk in your Astro application with Clerk's components & utilities.

In this starter you'll find examples of:

  • Custom Sign-in/up pages
  • Protecting your Dashboard using clerkMiddleware
  • A Dashboard that displays current user details using Astro.locals
  • Navbar with conditional rendering based on user's authentication status using Clerk's SignedIn and SignedOut components

Get started

  1. Clone the repository
git clone https://github.com/domitriusclark/astro-clerk-js
  1. Install dependencies
npm install
  1. Create a Clerk account & application

  2. Create a .env file in the root of your project and add your publishable & secret keys (found in your Clerk application Dashboard) + your expected sign-in and sign-up paths

PUBLIC_ASTRO_APP_CLERK_PUBLISHABLE_KEY=
CLERK_SECRET_KEY=

PUBLIC_ASTRO_APP_CLERK_SIGN_IN_URL=/sign-in
PUBLIC_ASTRO_APP_CLERK_SIGN_UP_URL=/sign-up
  1. Start the server
npm run dev

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published