This repository contains Next.js example applications demonstrating how to integrate with ScaleKit services.
This example demonstrates how to listen to webhook events from ScaleKit. It shows:
- Setting up webhook endpoints in a Next.js application
- Processing user events from ScaleKit
- Validating webhook signatures for security
- Handling different event types
Key Features:
- Secure webhook handling
- Event processing and validation
- Integration with ScaleKit's event system
This example showcases the full stack authentication capabilities of ScaleKit, including:
- Authentication (AuthN) implementation
- Hosted login box integration
- Secure session management
- User management functionality (coming soon)
- Logout implementation
Key Features:
- Complete authentication flow
- Session handling
- Secure user identity management
This example demonstrates how to implement Single Sign-On (SSO) for enterprise users by integrating AWS Cognito with Scalekit using the OpenID Connect (OIDC) protocol.
Key Features:
- AWS Cognito authentication
- Enterprise SSO via Scalekit integration
- Secure session management with Iron Session
- User profile information display
- Protected routes with middleware
- Responsive UI with Tailwind CSS
- Node.js (v16 or higher)
- npm or yarn
- ScaleKit credentials (client ID and secret)
- .env file with required environment variables
- Clone this repository
- Navigate to the desired example directory
- Run
npm install
oryarn
to install dependencies - Create a
.env
file with your ScaleKit credentials (see.env.example
in each project) - Run
npm run dev
oryarn dev
to start the development server
Each example requires specific environment variables. Check the .env.example
file in each project directory for details.
For assistance, please contact ScaleKit support or open an issue in this repository.
We welcome contributions! Please feel free to submit a pull request with any improvements or additional examples.
This project is licensed under the MIT License - see the LICENSE file for details.