Spaces:
Sleeping
Sleeping
Lakpriya Seneviratna
commited on
Commit
·
c6db5df
1
Parent(s):
7f04aa2
chore: Update TikTok API endpoint in tiktok_login function
Browse files
app.py
CHANGED
@@ -595,7 +595,7 @@ REDIRECT_URI = 'https://lakpriya-videogen-api.hf.space/tiktok_callback'
|
|
595 |
async def tiktok_login():
|
596 |
csrf_state = uuid.uuid4().hex
|
597 |
response = RedirectResponse(
|
598 |
-
url=f"https://www.tiktok.com/v2/auth/authorize/?client_key={CLIENT_KEY}&response_type=code&scope=user.info.basic,video.publish&redirect_uri={REDIRECT_URI}&state={csrf_state}"
|
599 |
)
|
600 |
response.set_cookie(key="csrf_state", value=csrf_state, max_age=600)
|
601 |
return response
|
|
|
595 |
async def tiktok_login():
|
596 |
csrf_state = uuid.uuid4().hex
|
597 |
response = RedirectResponse(
|
598 |
+
url=f"https://www.tiktok.com/v2/auth/authorize/?client_key={CLIENT_KEY}&response_type=code&scope=user.info.basic,video.publish,video.upload&redirect_uri={REDIRECT_URI}&state={csrf_state}"
|
599 |
)
|
600 |
response.set_cookie(key="csrf_state", value=csrf_state, max_age=600)
|
601 |
return response
|