Skip to content

Commit

Permalink
chore(app): test TikTok proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
ndom91 committed Apr 29, 2024
1 parent 13b3701 commit 5d9a1ce
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions apps/proxy/api/[auth].ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,31 @@ const authConfig: AuthConfig = {
Twitter,
WorkOS,
Zoom,
{
id: "tiktok",
name: "TikTok",
type: "oauth",
checks: ["state"],
clientId: process.env.AUTH_TIKTOK_ID,
clientSecret: process.env.AUTH_TIKTOK_SECRET,
authorization: {
url: "https://www.tiktok.com/v2/auth/authorize",
params: {
client_key: process.env.AUTH_TIKTOK_ID,
scope: "user.info.basic",
},
},
token: "https://open.tiktokapis.com/v2/oauth/token/",
userinfo:
"https://open.tiktokapis.com/v2/user/info/?fields=open_id,avatar_url,display_name,username",
profile(profile: any) {
return profile
},
style: {
bg: "#000",
text: "#fff",
},
},
],
basePath: "/api",
}
Expand Down

0 comments on commit 5d9a1ce

Please sign in to comment.