I'm implementing my own CSRF tokens on an application and I want to know if there is a standard for generating the MD5 hash that I will be storing in my JWT.
This is what my code looks like currently.
var token = auth.generateToken({
name_id: claims.nameID,
session_index: claims.sessionIndex,
departments: JSON.parse(data[0].departments)
})
I would really like to solve this without any npm modules because I'm building this for a lambda architecture and I don't want to store anything. I want it to be very minimalistic and completely stateless.
Thank you