Jump to content
McKay Development

Issue with GenerateAccessTokenForApp API to update steamLoginSecure – Returning Empty Response


Recommended Posts

Posted

I'm trying to use the Steam Web API endpoint:

https://api.steampowered.com/IAuthenticationService/GenerateAccessTokenForApp/v1/

I'm sending a POST request with steamid and refresh_token, but the response is always:

{ "response": {} }

It was working fine yesterday, but stopped working today.

Is there any better way to update steamLoginSecure?

Thank you very much!

 

post_url = 'https://api.steampowered.com/IAuthenticationService/GenerateAccessTokenForApp/v1/'
post_data = {
    'steamid': steam_id,
    'refresh_token': refresh_token,
}

response = session.post(post_url, data=post_data, allow_redirects=False, timeout=20)
print(response.text)

{"response":{}}

Posted (edited)
7 hours ago, Dr. McKay said:

What type of refresh token do you have?

Thank you!
The refresh_token comes from the maFile generated by linking with Steam Desktop Authenticator.
This is Steam Desktop Authenticator:

image.png.18b28ce47d470ed44ddcdcb6f46e530b.png

Edited by asdfghjkl
Posted
54 minutes ago, Dr. McKay said:

I'd guess your refresh token is probably expired or now invalid.

Here is some information from my refresh_token. I believe it hasn't expired yet, since I've recently logged in again using Steam Desktop Authenticator.

Payload:
{
    "iss": "",
    "sub": "",
    "aud": [
        "web",
        "renew",
        "derive"
    ],
    "exp": 1762718905,
    "nbf": 1735992415,
    "iat": 1744632415,
    "jti": "",
    "oat": 1744632415,
    "per": 1,
    "ip_subject": "",
    "ip_confirmer": ""
}

Posted
44 minutes ago, Dr. McKay said:

Dunno, you're doing something wrong then.

Thank you for your help! I should look into it a bit more — it's most likely something I did wrong. Thanks again for your assistance! Wishing you a wonderful day.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...