Skip to content

scalekit-developers/scalekit-express-example

Repository files navigation


Express.js Example App

Scalekit is the auth stack for AI apps - from human authentication to agent authorization. This Express.js example demonstrates how to implement both traditional B2B authentication (SSO, passwordless) and cutting-edge agentic workflows using Scalekit's Node.js SDK.


Pre-requisites

  1. Sign up for a Scalekit account.
  2. Get your env_url, client_id and client_secret from the Scalekit dashboard.

How to Run

# Clone the repository
git clone --recursive https://github.com/scalekit-developers/shared-ui-for-examples.git
# Install scalekit-express-example dependencies
npm install
# Update .env file with env_url, client_id and client_secret fetched from the Scalekit dashboard as below
SCALEKIT_ENV_URL = env_url
SCALEKIT_CLIENT_ID = client_id
SCALEKIT_CLIENT_SECRET = client_secret
# Run the server:
npm start
Open http://localhost:8080 with your preferred browser

API Reference

See the Scalekit API docs for more information about the API and authentication.

About

Express.js SSO example - Node.js authentication with session management and middleware

Topics

Resources

License

Stars

Watchers

Forks

Contributors 5