Hi, I think you want to use service now so that your JWT token won't expire after 24 hours(OAuth case).
What I did for this problem to generate JWT dynamically whenever it require. Please check screenshot for the code which can help you. Just add your keys and let me know if it helps you.
JWT generation
Regards
Lalit