Hi,
i am working on a custom node. First i have to login by Basic-Auth, after i have to use, from response a header element (‘X-ACCESS-TOKEN’), for further queries. i didnt find a node wich are using this authentication method.
with the examples on docs.n8n.io, i only have this:
const options: OptionsWithUri = {
headers: {
'Accept': 'application/json',
},
method: 'POST',
uri: `https://api.example.com/api/session`,
auth: {
username: `${username}`,
password: `${password}`
}
json: true,
};
responseData = await this.helpers.request(options);
The responseData doesnt include the header information, right?
i try it with
return responseData.headers.get(‘X-ACCESS-TOKEN’);
But no success. Thanks.