PluginsAPI Keys
Advanced Features
Advanced API Key features including sessions, multiple configurations, organization keys, storage modes, and more.
Advanced Features extends the Kernia auth server with feature-specific routes and schema.
Installation
uv add kerniaImport path
from kernia.plugins.advanced import advancedServer configuration
import os
from kernia import KerniaOptions
from kernia.auth import init
from kernia.plugins.advanced import advanced
auth = init(KerniaOptions(
database=adapter,
secret=os.environ["KERNIA_SECRET"],
base_url=os.environ["KERNIA_BASE_URL"],
plugins=(
advanced(),
),
))Routes
This feature does not currently expose routes in the local package, or its routes are created dynamically. Document exact routes before marking a UI flow as live.
Schema changes
Run kernia generate or kernia migrate after enabling this plugin. Plugin schema is merged with the core user, session, account, and verification tables.
Options and behavior
- Sessions from API keys
- Multiple Configurations
- Setup
- Creating Keys with Specific Configurations
- Using configId for API Key Operations
- Filtering Keys by Configuration
- Global Options
- Organization-Owned API Keys