auth

package
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 20, 2025 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CHAR_SET     = "23456789BCDFGHJKMNPQRTVWXY"
	CHAR_SET_LEN = uint32(len(CHAR_SET))
)

Variables

This section is empty.

Functions

func GenerateTwoFactorCode added in v0.0.5

func GenerateTwoFactorCode(sharedSecret string, current int64) (string, error)

Types

type CookieData

type CookieData struct {
	SessionID        string
	SteamLoginSecure string
	RefreshToken     string
	SteamID          string
	Expires          int64
	MaxAge           int
	RefreshTime      time.Time
}

type Core

type Core struct {
	// contains filtered or unexported fields
}

func (*Core) AccessToken added in v0.0.5

func (core *Core) AccessToken() string

func (*Core) ApplyCookie

func (core *Core) ApplyCookie()

func (*Core) CookieString added in v0.1.4

func (core *Core) CookieString() (string, error)

func (*Core) DeviceID added in v0.0.5

func (core *Core) DeviceID() string

func (*Core) HttpClient

func (core *Core) HttpClient() *http.Client

func (*Core) IdentitySecret added in v0.1.3

func (core *Core) IdentitySecret() string

func (*Core) Init

func (core *Core) Init(info LoginInfo)

func (*Core) Login

func (core *Core) Login() error

func (*Core) RefreshCookieWithToken added in v0.1.3

func (core *Core) RefreshCookieWithToken() error

func (*Core) RefreshTime added in v0.1.8

func (core *Core) RefreshTime() time.Time

func (*Core) SessionID

func (core *Core) SessionID() string

func (*Core) SetCookie

func (core *Core) SetCookie(cookieString string) error

func (*Core) SetHttpParam

func (core *Core) SetHttpParam(timeout int, proxy string) error

timeout: millsecond, set only while timeout > 0; proxy: if proxyUrl == "", ignore

func (*Core) SteamID

func (core *Core) SteamID() string

type LoginInfo

type LoginInfo struct {
	UserName       string
	Password       string
	SharedSecret   string
	IdentitySecret string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL