Documentation Index
Fetch the complete documentation index at: https://mintlify.com/SoftwareVerse/userverse/llms.txt
Use this file to discover all available pages before exploring further.
How configuration works
Userverse loads its settings from a JSON file at startup. The path to that file is resolved from theJSON_CONFIG_PATH environment variable.
JSON_CONFIG_PATH is not set, the application falls back to the [tool.userverse.config] section of pyproject.toml. If neither is available, a minimal default test configuration is used.
Always set
JSON_CONFIG_PATH in production. Relying on pyproject.toml defaults is only appropriate during local development.Sample configuration
The repository ships withsample-config.json as a starting point. Copy it and update the values before starting the server.
Configuration reference
Top-level fields
The base URL of the server. Used in generated links such as email verification URLs.
The display name of the application. Appears in the OpenAPI docs title and in the root endpoint response.
CORS origins (cor_origins)
Controls which origins are permitted to make cross-origin requests to the API.
List of allowed origins. Use
"*" to permit all origins. In production, restrict this to your frontend domain(s).List of origins to explicitly block, even if they appear in
allowed. Origins present in both lists are denied.JWT (jwt)
The secret key used to sign and verify JWT tokens. Use a strong, random value of at least 32 characters.
The signing algorithm for JWTs.
HS256 is the default. Other HMAC algorithms such as HS384 and HS512 are also valid.Lifetime of an access token in minutes. After this period the token expires and the user must log in again or exchange a refresh token.
Lifetime of a refresh token in minutes. This should be longer than
TIMEOUT to allow silent token renewal.Email (email)
Required for the email verification and password reset flows. Userverse connects to your SMTP server to send transactional emails.
Hostname of your SMTP server (e.g.,
mail.example.com or smtp.gmail.com).SMTP port. Use
587 for STARTTLS (recommended) or 465 for SSL.The email address or username used to authenticate with the SMTP server.
The password for the SMTP account. Store this securely and never commit it to version control.