JWT and Kling

Unable to properly authenticate with JWT node, in prep for KLING

Hi all,
I am struggling to get KLING authenticated for my n8n instance.
From what I read, I need to generate the JWT token and then use Bearer (token from JWT) for my HTTP node authentication for Kling.
My issue is, even before my Kling node, I cannot get the JWT node working properly. I’ve followed the steps/screen shots outlined in this community post: Authorization Kling API - #2 by Grot
and when I generate a token, I get this (screen shot from jwt website, which tells me I have a signature issue). I’ll also paste my JWT Config/node. Appreciate the help!!

Information on your n8n setup

  • n8n Installed via Hostinger

Hi @Christopher_Rolle, welcome!

This is correct.

This is unrelated. You can check the token here:

The payload that works is:

{
  "iss": "YOUR_ACCESS_KEY_HERE",
  "exp": {{ Math.floor($now / 1000) + 1800 }},
  "nbf": {{ Math.floor($now / 1000) - 5 }}
}