This commit is contained in:
2026-07-08 19:55:06 +02:00
parent a7d6d3bce9
commit 35f3ed0d0e

View File

@@ -24,7 +24,7 @@ export async function GET(request: NextRequest) {
const authUrl = new URL('https://www.tiktok.com/v2/auth/authorize/');
authUrl.searchParams.set('client_key', clientKey);
authUrl.searchParams.set('scope', 'user.info.basic,video.publish');
authUrl.searchParams.set('scope', 'user.info.basic,video.upload');
authUrl.searchParams.set('response_type', 'code');
authUrl.searchParams.set('redirect_uri', redirectUri);
authUrl.searchParams.set('state', oauthState);