Configuration
Full reference for AuthenSeeConfig -- all options for initializing the SDK.
Configuration
The AuthenSeeConfig object is passed to AuthenSee.init() to configure the SDK. The only required field is sessionToken.
Full config reference
Options detail
sessionToken
Required. A session token created on your backend via POST /v1/sessions using your secret key. Session tokens have a sess_ prefix and scope all SDK operations to a specific provider session.
See the API reference for how to create session tokens.
serverUrl
Required. The URL of your AuthenSee auth server instance.
theme
Optional. Customize the SDK's built-in UI to match your brand. AuthenSeeTheme also carries the co-brand fields displayName, accent, and mode ('light' | 'dark' | 'auto'). See the theming guide for the full type, the co-brand model, and examples.
For the hosted flow specifically, the co-brand theme is configured on the admin Brand identity page and delivered on the session — and you launch it as a popup with @rebellion-systems/authensee-embed. See the embed guide.
headless
Default: false. When set to true, the SDK disables all built-in UI components. Use this when you want to build a fully custom enrollment and authentication experience using the SDK's logic methods directly.
In headless mode, you are responsible for:
- Presenting questions to the user
- Collecting answers
- Displaying loading states during proof generation
- Showing success/error states
circuitJson
Optional. The SDK ships memory_auth.json bundled and resolves it automatically when this field is omitted, so most integrators never need to set it. Pass your own compiled artifact only if you need a custom-built circuit:
mockProver
Default: false. Forces the SDK to use the in-memory MockProver instead of loading the bundled circuit and the WASM prover. Use this in unit tests and dev environments where WASM is unavailable or you don't want real proof generation.
Never enable in production — proofs generated by MockProver will not verify against the real circuit.
debug
Default: false. When set to true, the SDK emits [AuthenSee] prefixed console logs for every internal operation -- initialization, identity resolution, challenge requests, proof generation timing, and verification results.
Do not enable debug mode in production.
circuitCachePolicy
Default: 'bundled'. Controls how circuit artifacts (ACIR bytecode and proving keys) are loaded:
| Value | Behavior |
|---|---|
'bundled' | Circuit artifacts are shipped with your app binary. Fastest startup, larger app size. |
'download' | Circuit artifacts are downloaded on first use and cached locally. Smaller app size, slower first run. |
isHuman
Default: true. Set to false when authenticating AI agents. Agent personas use the memory_auth_passkey circuit, which verifies a passkey signature only -- no knowledge factors (security questions) are required.
The memory_auth_passkey circuit is restricted to personas flagged as agent. This prevents humans from downgrading to weaker authentication.