marcus
January 26, 2023, 12:02pm
3
Hi @feelgood-interface ,
if you want to update the access token on each execution maybe the authenticate
function could be helpful. I have recently given an example here:
Hi @alexnemes ,
you can make http requests inside the credentials files using the authenticate method.
[image]
The authenticate function will be executed each time your descriptive node makes an api request. You have access to the credentials and you can manipulate the requestOptions, i. e. setting headers or query parameters. Since personio seems to require requesting an access token before each api request, you could also do this inside the authenticate function.
Here are some n8n credenti…