Skip to content

Add Scalekit authentication backend guide#13355

Closed
saif-at-scalekit wants to merge 2 commits intowithastro:v6from
saif-at-scalekit:add-scalekit-backend-guide-v6
Closed

Add Scalekit authentication backend guide#13355
saif-at-scalekit wants to merge 2 commits intowithastro:v6from
saif-at-scalekit:add-scalekit-backend-guide-v6

Conversation

@saif-at-scalekit
Copy link

This PR adds a new backend guide for integrating Scalekit authentication with Astro SSR projects.

Changes

  • Added new guide: src/content/docs/en/guides/backend/scalekit.mdx (377 lines)
  • Updated authentication.mdx to include Scalekit in the list of providers
  • Added Scalekit logo resource

Guide Overview

The guide covers:

  • Setting up Scalekit credentials
  • Installing @scalekit-sdk/node and @astrojs/node
  • Creating auth server endpoints (login, callback, logout)
  • Adding session middleware with automatic token refresh
  • Creating authenticated pages

Related Examples

  • Astro blog tutorial with Scalekit authentication (Authorization Code flow)
  • Scalekit developer docs site source (PKCE flow, no SDK)

saif-at-scalekit and others added 2 commits March 7, 2026 00:10
Adds a new backend guide for integrating Scalekit authentication into
an Astro project, following the same structure and style as the Supabase
guide. Covers SDK setup, OAuth login/callback/logout endpoints, session
middleware with automatic token refresh, and a protected page example.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@netlify
Copy link

netlify bot commented Mar 6, 2026

Deploy Preview for astro-docs-2 ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 71a93be
🔍 Latest deploy log https://app.netlify.com/projects/astro-docs-2/deploys/69ab1ffbcbb9c60008fe8137
😎 Deploy Preview https://deploy-preview-13355--astro-docs-2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@astrobot-houston
Copy link
Contributor

Lunaria Status Overview

🌕 This pull request will trigger status changes.

Learn more

By default, every PR changing files present in the Lunaria configuration's files property will be considered and trigger status changes accordingly.

You can change this by adding one of the keywords present in the ignoreKeywords property in your Lunaria configuration file in the PR's title (ignoring all files) or by including a tracker directive in the merged commit's description.

Tracked Files

File Note
en/guides/authentication.mdx Source changed, localizations will be marked as outdated.
en/guides/backend/scalekit.mdx Localization added, will be marked as complete.
Warnings reference
Icon Description
🔄️ The source for this localization has been updated since the creation of this pull request, make sure all changes in the source have been applied.

@sarah11918
Copy link
Member

Hi @saif-at-scalekit I'm sorry but we're in a docs and code freeze while we prepare to release v6!

I'm going to have to close that PR because our docs code will be significantly different, and it's easier than trying to fix up your branch. Please wait until after v6 is released, and then someone will be happy to guide you through your first PR! 🎉

@sarah11918 sarah11918 closed this Mar 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants