Api request with jwt token

I have another web service running that I want to log in to via an API request. I receive a jwt token back that I want to store in a cookie. Preferably as global variables on the frontend. After logging in, I want to send the jwt to every API request to that service. Do you have any tips for making this with scriptcase?

hi,
save it in the db?

No, I don’t want to store anything in the database. I want to store the jwt token locally that I get back in my response. I can also write this myself with PHP and JavaScript, but I was wondering if scriptcase has an out of the box solution for dealing with jwt tokens as described in my first post.