I need to be able to get the response headers in Step 2 “Configure Token Exchange Request” of session auth because the session info I need to save is in the headers, not the main body of the response. I’ve tried the following:
z.response.headers.get()
response.headers.get()
response.headers
Everything I try either causes it to fail to completely or just doesn’t return any information. Is there a correct syntax in Zapier to get response headers here? For example:
return z.request(options)
.then((response) => {
response.throwForStatus();
var session = Here’s where I need to grab session info from the headers.
return {
'sessionKey': session
};
});
Thanks,