Skip to content

Staying Logged in with new Auth Flow? #1220

Closed Answered by ABaumher
ABaumher asked this question in General
Discussion options

You must be logged in to vote

My understanding is the same, the refresh token from the new APIs gets used by the classic login.

IIRC if you provide an access token instead of a refresh token, it will reject you.

This is correct. However, if you want the session token to be available after your initial login, you must have ShouldRememberPassword = true during the initial login. In other words, https://github.com/SteamRE/SteamKit/blob/master/Samples/1a.Authentication/Program.cs#L65-L69 needs to be

    steamUser.LogOn( new SteamUser.LogOnDetails
    {
        Username = pollResponse.AccountName,
        AccessToken = pollResponse.RefreshToken,
        ShouldRememberPassword = true,
    } );

Otherwise, the next time yo…

Replies: 4 comments 9 replies

Comment options

You must be logged in to vote
2 replies
@ABaumher
Comment options

@yaakov-h
Comment options

Comment options

You must be logged in to vote
6 replies
@yaakov-h
Comment options

@ABaumher
Comment options

@ABaumher
Comment options

@ABaumher
Comment options

@yaakov-h
Comment options

Comment options

You must be logged in to vote
1 reply
@ABaumher
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by ABaumher
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants