Please have look at the JWT token creation code in my comment to this post.
Topic:
Privacy & Security
SubTopic:
General
Tags: