Authentication Configuration
Corresponds to the auth section of the configuration file.
| Field | Type | Default | Description |
|---|---|---|---|
jwt_secret | string | Generated | Signing key for login tokens, generated randomly on first start. Do not leak it or change it casually; after a change all users must sign in again. |
token_expires_in | int | 7 | Validity period of login tokens, in days. |
webauthn.rp_id | string | "" | RP ID for passkeys, usually the registrable domain, without port or scheme. |
webauthn.origins | string[] | [] | Whitelist of origins allowed to start passkey ceremonies, such as https://neokikoeru.example.com. |
webauthn.display_name | string | "Neokikoeru" | Site name shown to users when registering a passkey. Leave empty to fall back to the default. |
Browsers impose hard requirements on WebAuthn; registration and sign-in fail when they are not met:
- The site must be served over HTTPS. Only
localhost/*.localhostmay use HTTP. - It must be accessed through a domain name; accessing directly by IP address is rejected.
- Reverse proxies must not strip the
Originheader, otherwise you get amissing Origin headererror.
