Skip to content

scalekit-developers/astro-scalekit-auth-example

Repository files navigation

Astro Blog with ScaleKit Integration

This is a sample Astro blog site starter from the Astro Tutorial. It demonstrates how ScaleKit (https://docs.scalekit.com/authenticate/fsa/quickstart/) can be easily integrated for authentication.

Features

  • Complete blog implementation following the Astro "Build a Blog" tutorial
  • ScaleKit authentication integration with:
    • Login/logout functionality
    • Protected API routes
    • User session management
    • Server-side rendering with Astro's Node adapter

Setup

  1. Install dependencies:
pnpm install
  1. Configure your ScaleKit credentials in environment variables (see .env.example)

  2. Start the development server:

pnpm dev

ScaleKit Integration

This project demonstrates how to:

  • Configure ScaleKit with Astro's server-side rendering
  • Set up authentication middleware
  • Create protected API endpoints
  • Display user information in the UI
  • Handle login/logout flows

For more details on integrating ScaleKit, visit the ScaleKit Quickstart Guide.

Tutorial Progress

This branch contains the state of the project after completing the basic tutorial, Unit 6.3, with additional ScaleKit authentication features added.

About

A starter app (blog site) built with Astro that demonstrates how to add authentication, SSO, and social login using Scalekit. Includes sign-in, sign-up, and protected routes — ready to clone and customize.

Resources

License

Stars

Watchers

Forks

Contributors