diff --git a/backend/app/auth.py b/backend/app/auth.py index 4fc7458..55178b5 100644 --- a/backend/app/auth.py +++ b/backend/app/auth.py @@ -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", } diff --git a/backend/app/session_auth.py b/backend/app/session_auth.py index 94a76e2..65391c2 100644 --- a/backend/app/session_auth.py +++ b/backend/app/session_auth.py @@ -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", }