Skip to content

Commit 5d9a1ce

Browse files
committed
chore(app): test TikTok proxy
1 parent 13b3701 commit 5d9a1ce

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

apps/proxy/api/[auth].ts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,31 @@ const authConfig: AuthConfig = {
6262
Twitter,
6363
WorkOS,
6464
Zoom,
65+
{
66+
id: "tiktok",
67+
name: "TikTok",
68+
type: "oauth",
69+
checks: ["state"],
70+
clientId: process.env.AUTH_TIKTOK_ID,
71+
clientSecret: process.env.AUTH_TIKTOK_SECRET,
72+
authorization: {
73+
url: "https://www.tiktok.com/v2/auth/authorize",
74+
params: {
75+
client_key: process.env.AUTH_TIKTOK_ID,
76+
scope: "user.info.basic",
77+
},
78+
},
79+
token: "https://open.tiktokapis.com/v2/oauth/token/",
80+
userinfo:
81+
"https://open.tiktokapis.com/v2/user/info/?fields=open_id,avatar_url,display_name,username",
82+
profile(profile: any) {
83+
return profile
84+
},
85+
style: {
86+
bg: "#000",
87+
text: "#fff",
88+
},
89+
},
6590
],
6691
basePath: "/api",
6792
}

0 commit comments

Comments
 (0)