mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
issue: JWT expiry not defaulting to 4w #6794
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @recrudesce on GitHub (Oct 29, 2025).
Check Existing Issues
Installation Method
Docker
Open WebUI Version
0.6.3x
Ollama Version (if applicable)
No response
Operating System
Irrelevant as Docker
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
JWT Expiry should be set to 4w as per the docs if you don't set the envvar.
Actual Behavior
UI shows JWT Expiry as
-1when no envvar is set, and JWT's actually never expire.Steps to Reproduce
This happens on both 0.6.32, 0.6.33, and 0.6.34 from what I can see. No idea how far back this issue goes.
1: deploy OWUI docker somewhere
2: DO NOT set the
JWT_EXPIRES_INenv var3: go to the General Settings for OWUI
4: notice that JWT expiry is set to -1
Logs & Screenshots
No JWT Expiry envvar is set for the container:


JWT expiry shows as -1 in the UI

Persistent config shows JWT expiry set to -1, not the default of 4w as detailed in the docs.
Additional Information
No response
@Classic298 commented on GitHub (Oct 29, 2025):
4 weeks as default value is only after version 0.6.34
and if you have ever set it to any other value (aka if you installed Open WebUI before the default value was changed (= if you installed your Open WebUI instance with any version other than 0.6.34, ever)) it still is -1
It is a persistent config. Please read up in the documentation about how persistent configs work. Persistent configs can never be changed form the environment variables after they have been initially set.
@recrudesce commented on GitHub (Oct 29, 2025):
Nothing about the documentation states the feature was added in 0.6.34. I understand how persistent config works.
@Classic298 commented on GitHub (Oct 29, 2025):
@recrudesce It is impossible and very impractical to add notices to every single env var for when this env var was added or changed or modified in specific versions.
But, for that, we include all the important changes in the changelog!
https://github.com/open-webui/open-webui/releases/tag/v0.6.34