Skip to content

Commit

Permalink
fix(provider): update tiktok token url (#10728)
Browse files Browse the repository at this point in the history
* Update tiktok.ts

* Update tiktok.ts

---------

Co-authored-by: Nico Domino <[email protected]>
Co-authored-by: Thang Vu <[email protected]>
Co-authored-by: Balázs Orbán <[email protected]>
  • Loading branch information
4 people authored Aug 9, 2024
1 parent c5d6cc9 commit 0410ae5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/core/src/providers/tiktok.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ export interface TiktokProfile extends Record<string, any> {
* :::
*/
export default function TikTok<P extends TiktokProfile>(
options: OAuthUserConfig<P>
options: OAuthUserConfig<P>,
): OAuthConfig<P> {
return {
id: "tiktok",
Expand All @@ -212,8 +212,9 @@ export default function TikTok<P extends TiktokProfile>(
},

token: {
url: "https://open.tiktokapis.com/v2/oauth/token/",
async request({ params, provider }) {
const res = await fetch(`https://open.tiktokapis.com/v2/oauth/token/`, {
const res = await fetch(provider.token?.url!, {
method: "POST",
headers: {
"Cache-Control": "no-cache",
Expand Down

0 comments on commit 0410ae5

Please sign in to comment.