A modern Next.js application demonstrating Scalekit's enterprise authentication capabilities. This example showcases how to implement SSO authentication flows in a React/Next.js application using the app router.
Scalekit provides auth and actions on behalf of users, with 500+ connectors and 20,000+ tools.
- Enterprise SSO Integration: SAML/OIDC authentication flows using Scalekit
- Next.js App Router: Modern Next.js 13+ patterns with server actions
- Session Management: Secure authentication state with HTTP-only cookies
- OAuth 2.0 Flows: Authorization code flow with CSRF protection
- User Profile Management: Authenticated user data display
- Modern UI/UX: Clean, responsive interface with Tailwind CSS
- Sign up for a Scalekit account
- Get your
env_url,client_idandclient_secretfrom the Scalekit dashboard
# Clone the repository
git clone https://github.com/scalekit-developers/scalekit-nextjs-demo.git
cd scalekit-nextjs-demo
# Install dependencies
npm install
# or
yarn install
# or
pnpm install
# or
bun install- Copy the environment variables:
cp .env.example .env.local- Update
.env.localwith your Scalekit credentials:
SCALEKIT_ENV_URL=your_env_url
SCALEKIT_CLIENT_ID=your_client_id
SCALEKIT_CLIENT_SECRET=your_client_secretRun the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun devOpen http://localhost:3000 with your browser to see the result.
- Framework: Next.js 13+ with App Router
- Language: TypeScript
- Authentication: Scalekit SDK
- Styling: Tailwind CSS (if configured)
- Font: Inter (optimized with
next/font)
- SSO Integration - Implement enterprise Single Sign-on
- Full Stack Auth - Complete authentication solution
- Passwordless Auth - Modern authentication flows
- Social Logins - Popular social identity providers
- Machine-to-Machine - API authentication
- API Reference - Complete API documentation
- Developer Kit - Tools and utilities
- API Authentication Guide - Secure API access
- Setup Guide - Initial platform configuration
- Code Examples - Ready-to-use code snippets
- Admin Portal Guide - Administrative interface
Explore other Scalekit integrations:
| Framework | Repository | Description |
|---|---|---|
| Express.js | scalekit-express-example | Node.js/Express integration |
| FastAPI | scalekit-fastapi-example | Python/FastAPI integration |
| Go | scalekit-go-example | Go HTTP server integration |
| Spring Boot | scalekit-springboot-example | Java/Spring Boot integration |
We welcome contributions! Please see our Contributing Guidelines for details.
This project is licensed under the MIT License - see the LICENSE file for details.