modify: jwt 验证

This commit is contained in:
2026-02-02 13:36:57 +08:00
parent f58181fbd3
commit 82097e12b5
33 changed files with 1438 additions and 2287 deletions
@@ -1,7 +1,7 @@
[default]
app.name = "{{ cookiecutter.project_name }}"
app.version = "{{ cookiecutter.project_name }}"
app.description = "基于 FastAPI 和 Tortoise-ORM 的 chongming 打包脚手架"
app.description = "基于 FastAPI 和 Tortoise-ORM 的 {{ cookiecutter.project_name }} 打包脚手架"
app.debug = false
env = "production"
@@ -29,6 +29,13 @@ readonly = false
secret_key = "your-secret-key-change-in-production"
algorithm = "HS256"
access_token_expire_minutes = 30
refresh_token_expire_days = 7
[jwt_cache]
enabled = true
db_path = "./cache"
cleanup_interval_hours = 24
max_sessions_per_user = 5
[development]
env = "development"