JWT Token different from Lambda or Locally | Community
Skip to main content
October 14, 2022
Question

JWT Token different from Lambda or Locally

  • October 14, 2022
  • 2 replies
  • 959 views

I am trying to get a new JWT from AWS Lambda, using Node.JS.

I have used the same Node.Js from examples that I am using locally on my MAC OSX.

The local obtained JWT is ok, but when I try to get the same from AWS Lambda and use it to obtain the Token for Adobe PDF Services API, I obtain error:

{"error_description":"JWT token is incorrectly formatted, and can not be decoded.","error":"invalid_token"}

 

Any advice? Thanks

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

superbucAuthor
October 14, 2022

I found a difference in obtaining JWT but it's not documented, is very difficult to understand.

If I ask for the JWT in Service Account JWT it is working, but it is not working if I ask the same in "Generate Access Token" in the API's I have in the project.

 

I have downloaded and used a Node.Js demo for one, but now I cannot understand what is actually working.

I assume I am using the wrong .js to generate token, but I don't know where to download the right one.

tmj
Adobe Employee
Adobe Employee
October 16, 2022

Hi @superbuc - We would need more details about the issue you are facing to help debug it. Could you add more details (exact steps taken, libraries used, error messages, etc.) to your question?