Authentication with steam via https://steamcommunity.com website.
Basic authentication
session := steamweb.NewSession()
response, err := session.Login(&steamweb.NewCredentials("login","password","steamid64"))
//Error checking
if response.LoginComplete {
//We are logged in :>
}
With steamguard enabled you have to extract steamMachineAuth cookie. Chrome:
- Go to https://steamcommunity.com
- Click F12 to open developer console
- Click Resources and go to cookies/steamcommunity.com
- Look for steamMachineAuth and copy value
- Supply the value to Credentials.Token
credentials.Token="tokengoeshere"