Allow public access to TikTok OAuth callback and verify file
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
637690e476
commit
e1e20d1af8
@ -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",
|
||||
}
|
||||
|
||||
|
||||
@ -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",
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user