Skip to content

Commit c83de20

Browse files
fix(auth): increase default token expiration from 30m to 8h
Short-lived tokens caused frequent "Could not validate credentials" errors in Swagger UI despite persistAuthorization keeping stale tokens. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent b1ffb41 commit c83de20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
PORT = config("PORT", default=3000, cast=int)
6666
SECRET_KEY = config("SECRET_KEY")
6767
ALGORITHM = config("ALGORITHM", default="HS256")
68-
TOKEN_EXPIRE = config("TOKEN_EXPIRE", default=30, cast=int)
68+
TOKEN_EXPIRE = config("TOKEN_EXPIRE", default=480, cast=int)
6969

7070
try:
7171
DB_USER = config("DB_USER")

0 commit comments

Comments
 (0)