Hello, in classic cloudscript, there was a full-global access to variable CurrentPlayerId, which contained the ID of player used for playfab calls such as getting user's inventory.
Now in typescript Azure Functions, it is passed by parameter in request. I want to make i globally accessible, something like set it to global variable and then be able to use it across whole lifecycle of the function.
But somehow I cant get it working, can you please help me how to properly set CurrentPlayerId to a global variable and access it anywhere?
Im using JS/TS
Thank you!