mirror of
https://github.com/Cccc-owo/CheckInApp.git
synced 2026-06-17 05:56:29 +00:00
feat: implement JWT auth and optimize token validation
- Separate JWT login (21d) from check-in token - Unify check-in token validation with verify_checkin_authorization() - Update API docs for dual-token architecture
This commit is contained in:
@@ -6,6 +6,9 @@
|
||||
# DATABASE_URL=sqlite:///./data/checkin.db
|
||||
# DATABASE_URL=postgresql://user:password@localhost/checkin
|
||||
|
||||
# 安全配置(鉴权 JWT 密钥,需修改以保证安全)
|
||||
SECRET_KEY=CheckInSecretKey
|
||||
|
||||
# CORS 允许的前端域名(逗号分隔,生产环境必须修改)
|
||||
CORS_ORIGINS=http://localhost:3000
|
||||
|
||||
|
||||
Reference in New Issue
Block a user