-
Notifications
You must be signed in to change notification settings - Fork 1
/
type.go
37 lines (32 loc) · 1 KB
/
type.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package community
type LoginDetails struct {
AccountName string
Password string
TwoFactorCode string
}
// responses
type getRSAKeyRes struct {
Success bool `json:"success"`
PublickeyMod string `json:"publickey_mod"`
PublickeyExp string `json:"publickey_exp"`
Timestamp string `json:"timestamp"`
TokenGid string `json:"token_gid"`
}
type loginSession struct {
Success bool `json:"success"`
LoginComplete bool `json:"login_complete"`
RequiresTwoFactor bool `json:"requires_twofactor"`
Message string `json:"message"`
RedirectURI string `json:"redirect_uri"`
OAuth oAuth `json:"transfer_parameters"`
}
type oAuth struct {
ID string `json:"-"`
DeviceID string `json:"-"`
SteamID string `json:"steamid"`
Auth string `json:"auth"`
TokenSecure string `json:"token_secure"`
WebCookie string `json:"webcookie"`
SteamLogin string `json:"-"`
SteamLoginSecure string `json:"-"`
}