Remove expiration from JWT

I am trying to create jwt from json data. The problem is, I am using this node

and it always creates a jwt with iat (issue at) and exp (expiration) like this:

Question is: how can I remove iat and exp from jwt?

In a Change node you can Delete properties by selecting Delete.

1 Like

Be careful, JWT's are meant to be short lived. Remember that they are just a convenience and not a security feature. They are really meant to be used to allow one server to hand off to another (that was the original design criteria) and as such should have timespans in minutes.

Sadly, a large number of developers have abused them but not recognised the weaknesses.

If you need session management, use a session management tool and retain JWT as the short-lived convenience token it is meant to be.

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.