Skip to content

Commit

Permalink
use timestamp to prevent cache
Browse files Browse the repository at this point in the history
  • Loading branch information
moonheart authored Nov 27, 2024
1 parent 58df553 commit 7a19db9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MementoMori/Funcs/Auth.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ private async Task<int> GetAuthToken()
{
try
{
var json = await _httpClientFactory.CreateClient().GetStringAsync("https://list.moonheart.dev/d/public/mmtm/AddressableLocalAssets/ScriptableObjects/AuthToken/AuthTokenData.json");
var json = await _httpClientFactory.CreateClient().GetStringAsync("https://list.moonheart.dev/d/public/mmtm/AddressableLocalAssets/ScriptableObjects/AuthToken/AuthTokenData.json?v=" + DateTimeOffset.Now.ToUnixTimeSeconds());
return JObject.Parse(json)["_authToken"]?.Value<int>() ?? 0;
}
catch (Exception e)
Expand Down

0 comments on commit 7a19db9

Please sign in to comment.