feat: persist authentication sessions in postgres
Verify and deploy API / verify-deploy (push) Failing after 1m45s

This commit is contained in:
2026-09-18 22:16:30 +08:00
parent 426d61139c
commit 434f324bb9
13 changed files with 118 additions and 84 deletions
+2 -4
View File
@@ -8,9 +8,8 @@ class Settings(BaseSettings):
model_config = SettingsConfigDict(env_file=".env", extra="ignore")
database_url: str = "sqlite:///./pk-lab.db"
token_secret: str = "development-only-change-me"
token_ttl_seconds: int = 60 * 60 * 24 * 30
cors_origins: str = "http://localhost:3001,http://localhost:3002"
session_ttl_seconds: int = 60 * 60 * 24 * 30
cors_origins: str = "http://localhost:3000,http://localhost:3002"
public_base_url: str = "http://localhost:18082"
test_auth_enabled: bool = False
xhs_token_url: str = "https://miniapp.xiaohongshu.com/api/rmp/token"
@@ -35,4 +34,3 @@ class Settings(BaseSettings):
@lru_cache
def get_settings() -> Settings:
return Settings()