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.
- Sign up for a Scalekit account.
- Get your
env_url,client_idandclient_secretfrom the Scalekit dashboard.
# 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 startOpen http://localhost:8080 with your preferred browser
See the Scalekit API docs for more information about the API and authentication.