Allow public access to TikTok OAuth callback and verify file

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
eric 2026-08-14 09:32:07 -05:00
parent 637690e476
commit e1e20d1af8
2 changed files with 3 additions and 0 deletions

View File

@ -11,6 +11,7 @@ from .config import settings
# OAuth redirect + SSE + static covers — never block
_PUBLIC_PATHS = {
"/api/shorts/oauth/callback",
"/api/tiktok/oauth/callback",
"/api/events/stream",
}

View File

@ -23,10 +23,12 @@ SESSION_TTL_SEC = 7 * 86400
_PUBLIC_API_PREFIXES = (
"/api/auth/login",
"/api/auth/status",
"/api/tiktok/oauth/callback/",
)
_PUBLIC_API_EXACT = {
"/api/health",
"/api/shorts/oauth/callback",
"/api/tiktok/oauth/callback",
"/api/events/stream",
}