const body = {
"openid.assoc_handle": searchParams.get("openid.assoc_handle") ?? "",
"openid.signed": searchParams.get("openid.signed") ?? "",
"openid.sig": searchParams.get("openid.sig") ?? "",
"openid.ns": OPENID.ns,
"openid.mode": "check_authentication",
"openid.op_endpoint": OPENID.endpoint,
"openid.claimed_id": searchParams.get("openid.claimed_id") ?? "",
"openid.identity": searchParams.get("openid.identity") ?? "",
"openid.return_to": returnTo,
"openid.response_nonce": searchParams.get("openid.response_nonce") ?? "",
};
const openidResponse = await fetch(
"https://<steam-proxy>/steamcommunity.com/openid/login",
{
method: "POST",
headers: {
"Content-Type": "application/x-www-form-urlencoded",
},
body: new URLSearchParams(body),
},
);
const body = {
"openid.assoc_handle": searchParams.get("openid.assoc_handle") ?? "",
"openid.signed": searchParams.get("openid.signed") ?? "",
"openid.sig": searchParams.get("openid.sig") ?? "",
"openid.ns": OPENID.ns,
"openid.mode": "check_authentication",
"openid.op_endpoint": OPENID.endpoint,
"openid.claimed_id": searchParams.get("openid.claimed_id") ?? "",
"openid.identity": searchParams.get("openid.identity") ?? "",
"openid.return_to": returnTo,
"openid.response_nonce": searchParams.get("openid.response_nonce") ?? "",
};
const openidResponse = await fetch(
"https://<steam-proxy>/steamcommunity.com/openid/login",
{
method: "POST",
headers: {
"Content-Type": "application/x-www-form-urlencoded",
},
body: new URLSearchParams(body),
},
);