Loading...
Loading...
The kit uses NextAuth.js v5 with multiple authentication strategies: email/password, OAuth providers, SAML SSO for enterprise, and API keys for programmatic access.
Enabled by default. Users sign up with email and password. Passwords are hashed with bcrypt. No additional configuration required.
Add social login by configuring OAuth providers. Each provider needs credentials from the provider's developer console.
AUTH_GITHUB_ID=your-github-client-id
AUTH_GITHUB_SECRET=your-github-client-secretCreate OAuth App at github.com/settings/developers. Set callback URL to https://your-domain.com/api/auth/callback/github.
AUTH_GOOGLE_ID=your-google-client-id
AUTH_GOOGLE_SECRET=your-google-client-secretCreate credentials at Google Cloud Console. Authorized redirect URI: https://your-domain.com/api/auth/callback/google.
SAML 2.0 SSO integrates with enterprise identity providers like Okta, Azure AD, and OneLogin. Requires the ENCRYPTION_MASTER_KEY env var for secure key storage.
Configuration is done through the admin settings UI. You provide:
Generate API keys for programmatic access to the chat and document APIs. Keys are created in the user settings and support scope restrictions.
curl -X POST https://your-domain.com/api/chat \
-H "Authorization: Bearer sk-your-api-key" \
-H "Content-Type: application/json" \
-d '{"message": "Hello"}'Sessions use JWT tokens stored in HTTP-only cookies. Configuration: