I want to integrate ilovepdf (iLovePDF API Reference for developers) into my n8n workflow.
They use JWT for Auth and I’m not sure how to use it in n8n. They have two options:
- Self-signed token (server side code)
- Request signed token from our authentication server (client side code)
Any suggestions on how I can do this?
I just had a quick look. Since the token seems to expire every two hours, I would sign in every time the workflow executes. It should look like this:
Make a POST to the
/auth endpoint and get the token. With that token, Include that token in the header of every subsequent request. To include the token in the header, use expressions.