@kon10/auth
v1.5.0
Published
Kon10 auth — session-based authentication, password hashing, AuthModule, and Studio UI.
Downloads
73
Maintainers
Readme
@kon10/auth
Session authentication, RBAC, API keys, auth routes, and Studio settings for Kon10.
Install
pnpm add @kon10/authWhen to use this package
Use @kon10/auth when your Kon10 config needs session authentication, RBAC, API keys, auth routes, and Studio settings for Kon10.
Public API
The primary entrypoint is AuthModule. See src/index.ts for the complete export surface, including types, helpers, and any Studio extension entrypoints.
Example
import { AuthModule } from '@kon10/auth'
AuthModule({
secret: process.env.AUTH_SECRET!,
})Operational notes
- Use with
@kon10/usersfor the default subject store and user collection. SetAUTH_SECRETin production. - Keep module-specific UI behind the
./studioexport when present. - Prefer typed field builders and module factories over ad-hoc entity objects.
