Configuration
Full reference for AuthenSeeConfig — all options for initializing the SDK.
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 the circuit for every registered scheme bundled and resolves the right one automatically based on the scheme being proven, so most integrators never need to set this field. 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 enroll and authenticate with the agent_keypair_v1 scheme, which verifies a raw ECDSA-P256 keypair signature — there's no WebAuthn ceremony and no image-points or motion factor.
The agent_keypair_v1 scheme is restricted to personas flagged as agent. This prevents humans from downgrading to weaker authentication.
Next
- Theming — the full
AuthenSeeThemetype and the co-brand model - Events — the lifecycle events
debugmode logs - Sessions reference — where session tokens come from