Skip to content

Commit b059541

Browse files
Merge branch 'master' into danny/sdk-docs-polish
2 parents 517adf9 + 0070d5f commit b059541

File tree

1 file changed

+12
-1
lines changed
  • docs-v2/pages/api/demo-connect/accounts

1 file changed

+12
-1
lines changed

docs-v2/pages/api/demo-connect/accounts/[id].js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
* Retrieves information about connected accounts for the interactive demo
44
*/
55
import { createBackendClient } from "@pipedream/sdk/server";
6-
import { createApiHandler } from "../utils";
6+
import {
7+
createApiHandler, generateRequestToken,
8+
} from "../utils";
79

810
/**
911
* Handler for account details retrieval
@@ -17,6 +19,15 @@ async function accountHandler(req, res) {
1719
});
1820
}
1921

22+
// Debug logging for troubleshooting token validation
23+
console.log("Account API request:", {
24+
id,
25+
host: req.headers.host,
26+
origin: req.headers.origin,
27+
requestToken: req.headers["x-request-token"],
28+
expectedToken: generateRequestToken(req),
29+
});
30+
2031
try {
2132
// Initialize the Pipedream SDK client
2233
const pd = createBackendClient({

0 commit comments

Comments
 (0)