How to generate jwt token for Zephyr API using nodejs?

`I’m able to generate jwt token Successfully from java but unable to do same from javascript. Could someone please help me how to generate jwt token for zephyr

Tried with this but still getting ‘Expecting claim ‘qsh’ to have value’ error`