I'm currently getting an error about my DeveloperSecretKey not being valid when attempting to call functions on the server api. Thing is, I do have my secret key set as a global variable in my app's settings. Is there any other known issues that could cause this to happen?
Here is where I'm using the secret key but the function returns on this null check meaning my key is not getting set..
// Title settings for authentication on the server side
var apiSettings = new PlayFabApiSettings()
{
TitleId = Environment.GetEnvironmentVariable("PLAYFAB_TITLE_ID", EnvironmentVariableTarget.Process),
DeveloperSecretKey = Environment.GetEnvironmentVariable("PLAYFAB_SECRET_KEY", EnvironmentVariableTarget.Process)
};
if (apiSettings.DeveloperSecretKey == null)
{
const string responseMessage = "This Function Ran But We Couldn't Find The DeveloperSecretKey";
return new OkObjectResult(responseMessage);
}