I am trying to run my azure function locally and and everytime I run it I get the error PlayFabAllSDK: DeveloperSecretKey must be set in your local or global settings to call this method.
Despite me adding
PlayFabSettings.staticSettings.TitleId = context.TitleAuthenticationContext.Id;
PlayFabSettings.staticSettings.DeveloperSecretKey = Environment.GetEnvironmentVariable("PLAYFAB_DEV_SECRET_KEY", EnvironmentVariableTarget.Process);
in the Azure function, I just wanna call PlayFab.PlayFabServerAPI.GetUserDataAsync when I get a request from my game, in the game I use the REST API to call the local URL of the Azure function, though the function calls anytime I make a request to Playfab I receive the error. Please help.