Skip to content

Authentication Configuration ​

Corresponds to the auth section of the configuration file.

FieldTypeDefaultDescription
jwt_secretstringGeneratedSigning 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_inint7Validity period of login tokens, in days.
webauthn.rp_idstring""RP ID for passkeys, usually the registrable domain, without port or scheme.
webauthn.originsstring[][]Whitelist of origins allowed to start passkey ceremonies, such as https://neokikoeru.example.com.
webauthn.display_namestring"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 / *.localhost may use HTTP.
  • It must be accessed through a domain name; accessing directly by IP address is rejected.
  • Reverse proxies must not strip the Origin header, otherwise you get a missing Origin header error.