Next.js User Authentication
Demonstrates passwordless authentication with automatic ChatBotKit user provisioning through the User API.
nextjs
pages-router
authentication
This example shows how to connect NextAuth authentication to isolated ChatBotKit users managed by your application.
The architecture uses parent User tokens to authenticate users with ChatBotKit on behalf of your application. This allows you to manage user access and permissions through your own system while leveraging ChatBotKit's AI capabilities.
This pattern is crucial for SaaS platforms, enterprise applications, or any service that wants to embed AI features while maintaining control over user management and billing.