File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
docs-v2/pages/api/demo-connect/accounts Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 33 * Retrieves information about connected accounts for the interactive demo
44 */
55import { 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 ( {
You can’t perform that action at this time.
0 commit comments