Commit b177848
fix(tiktok): stop returning raw 'credential' subBlock id from tools.config.params
The block's params function built a local `credential` variable from
params.oauthCredential and returned it under the key `credential` in
every switch case. That literal token is the raw subBlock id, which is
deleted after canonical transformation into `oauthCredential` — the
blocks.test.ts canonical-param-validation suite flags any params
function that still references it.
It was also redundant: oauthCredential is already part of the base
resolved inputs, which the executor merges into the tool call before
config.params overrides are applied, so the OAuth token resolution
(which reads contextParams.oauthCredential) worked regardless. Removed
the explicit credential plumbing, matching the convention already used
by other OAuth blocks like dropbox.ts.
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent d8608aa commit b177848
1 file changed
Lines changed: 2 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
379 | 379 | | |
380 | 380 | | |
381 | 381 | | |
382 | | - | |
383 | 382 | | |
384 | 383 | | |
385 | 384 | | |
386 | 385 | | |
387 | 386 | | |
388 | 387 | | |
389 | 388 | | |
390 | | - | |
391 | 389 | | |
392 | 390 | | |
393 | 391 | | |
394 | 392 | | |
395 | | - | |
396 | 393 | | |
397 | 394 | | |
398 | 395 | | |
399 | 396 | | |
400 | 397 | | |
401 | | - | |
402 | 398 | | |
403 | 399 | | |
404 | 400 | | |
405 | 401 | | |
406 | 402 | | |
407 | 403 | | |
408 | | - | |
| 404 | + | |
409 | 405 | | |
410 | 406 | | |
411 | 407 | | |
412 | | - | |
413 | 408 | | |
414 | 409 | | |
415 | 410 | | |
| |||
429 | 424 | | |
430 | 425 | | |
431 | 426 | | |
432 | | - | |
433 | 427 | | |
434 | 428 | | |
435 | 429 | | |
436 | 430 | | |
437 | 431 | | |
438 | 432 | | |
439 | 433 | | |
440 | | - | |
441 | 434 | | |
442 | 435 | | |
443 | 436 | | |
| |||
453 | 446 | | |
454 | 447 | | |
455 | 448 | | |
456 | | - | |
457 | 449 | | |
458 | 450 | | |
459 | 451 | | |
| |||
464 | 456 | | |
465 | 457 | | |
466 | 458 | | |
467 | | - | |
468 | 459 | | |
469 | 460 | | |
470 | 461 | | |
471 | | - | |
| 462 | + | |
472 | 463 | | |
473 | 464 | | |
474 | 465 | | |
| |||
0 commit comments