diff --git a/src/lib/alarms/access_token.ts b/src/lib/alarms/access_token.ts index 469fd53..47212fa 100644 --- a/src/lib/alarms/access_token.ts +++ b/src/lib/alarms/access_token.ts @@ -20,6 +20,10 @@ export async function getAccessToken(expectedSteamID?: string): Promise( RequestType.FETCH_STEAM_USER, async (req) => { - const resp = await fetch('https://steamcommunity.com'); + const resp = await fetch('https://steamcommunity.com', { + headers: { + // Required for Steam to refresh the JWT when it expires + Accept: 'text/html,application/xhtml+xml,application/xml;q=0.9;q=0.8,application/signed-exchange;v=b3;q=0.7', + }, + }); if (!resp.ok) { throw new Error('non-ok response for steamcommunity.com'); }