Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] committed Sep 2, 2024
1 parent fcc1a2f commit d16d2b1
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/runtime/server/lib/oauth/tiktok.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,15 @@ export function oauthTikTokEventHandler({ config, onSuccess, onError }: OAuthCon
}

const tokens = await requestAccessToken(config.tokenURL as string, {
body: {
grant_type: 'authorization_code',
redirect_uri: redirectURL,
client_key: config.clientKey,
client_secret: config.clientSecret,
code: query.code,
...config.sandbox ? { code_verifier: codeVerifier } : {},
} as TikTokRequestAccessTokenBody,
},
body: {
grant_type: 'authorization_code',
redirect_uri: redirectURL,
client_key: config.clientKey,
client_secret: config.clientSecret,
code: query.code,
...config.sandbox ? { code_verifier: codeVerifier } : {},
} as TikTokRequestAccessTokenBody,
},
)

if (tokens.error) {
Expand Down

0 comments on commit d16d2b1

Please sign in to comment.