Skip to content

Cant get valid steamLoginSecure cookie #102

@salat-23

Description

@salat-23

The cookie SteamGuardAccount has and what my browser has are totally different and the first one doesent really work. I triend doing the authentication process using steamkit but my implementation doesent really work when sending requests, although it looks close enough. Maybe I am doing something wrong, because the steam sends code 400 back when I try to use my new steamLoginSecure so that mean that either session id is broken or something else I am not aware of. Any ideas?

Here is part of my code:

        AuthPollResult pollResponse;
        pollResponse = await authSession.PollingWaitForResultAsync();

        var steamId = authSession.SteamID.ConvertToUInt64();
       
        SessionData sessionData = new SessionData()
        {
            SteamID = steamId,
            OAuthToken = pollResponse.AccessToken,
            SteamLoginSecure = Uri.EscapeDataString($"{steamId}||{pollResponse.AccessToken}"),
        };

        
        account.Session = sessionData;
        account.FullyEnrolled = true;
        account.RefreshSession();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions